See if the built-in task will do the trick.
Erik
On Feb 16, 2005, at 4:19 PM, Michael Wang (IT) wrote:
Hi,
Is there some if/while control structure in Ant?
Here is what I am trying to do with Ant.
I want to write a built script for ant. This script is used to compile
some oracle forms on
Check out the ant-contrib tasks...
http://ant-contrib.sourceforge.net/
-Rob A
> -Original Message-
> From: Michael Wang (IT) [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 16, 2005 1:19 PM
> To: user@ant.apache.org
> Subject: Help with Ant
>
>
> Hi,
>
> Is there some if/while c
> I want to exclude that source directory. Here's the target
> I've defined:
>
>
>excludes="**/vssver.scc,**/source" />
>
>
> The SoruceSafe files (vssver.scc) get excluded just fine, but
> no matter
> what I try for the directory I can't get it to work (I've
> tried **/sour
Hi,
Is there some if/while control structure in Ant?
Here is what I am trying to do with Ant.
I want to write a built script for ant. This script is used to compile some
oracle forms on Unix.
For example, for /usr/local/myproject/src. I have some *.fmb file and I want to
convert them using f9
Hello. I'm relatively new to Ant (I didn't like it before for whatever
reason, but I'm warming to it now).
I'm trying to create a JAR (WAR actually) of a webapp and I've been
banging my head against the wall trying to figure out how to exclude a
particular directory. I can exclude files just fin
A new version of Ant Pretty Build is now available.
Check new features at http://antprettybuild.free.fr.
More documentation and demo will be published soon.
Improvements, suggestions and comments are welcome...
Hope you enjoy it ;-)
Please update the External Tools page external.xml with the foll
A quick google for
"is not a Java .class file" bcel [1]
and particularly [2]
showed that at aspectwerkz.codehaus.org they have
written bcel-patch.jar for some reason. I am
investigating it.
Ivan
[1]http://www.google.com/search?hl=en&lr=&safe=off&q=%22is+not+a+Java+.class+file%22+bcel&btnG=Search
I see the same underlying exception,
I used:
} catch (InvocationTargetException t) {
throw new BuildException(t.getTargetException());
}
and saw:
.
.
.
--- Nested Exception ---
java.lang.ClassFormatError: is not a Java .class file
at org.apache.b
--- [EMAIL PROTECTED] wrote:
> I had a look into the source of -
> all exceptions are
> catched and
> a new IOEx with the message only is thrown. Maybe
> for debug purposes we
> could provide
> the complete stacktrace - especially here it could
> be useful, I think.
I added them to see what is
I had a look into the source of - all exceptions are
catched and
a new IOEx with the message only is thrown. Maybe for debug purposes we
could provide
the complete stacktrace - especially here it could be useful, I think.
Jan
> -Ursprüngliche Nachricht-
> Von: Ivan Ivanov [mailto:[EMAIL
Hello, Peter and all,
I am using Fedora Core 2 and does
*not* work on my machine too. I am running the
following ant script:
against the following class:
public class Constants {
public static final int INT_CONST = 1;
public static
I´ve attached my test scenario with one failing and one passing target.
- compile: compiles all java sources
Ini.java :original source file which is too big
Ini[1-4].java:splitted files
- macrodef :commno definition for loading the class constants
- test-should-fail: load th
Mmm,
I cannot seem to get classconstants to work at all on linux.
Has anyone seen it work in linux?
Peter
[EMAIL PROTECTED] wrote:
I could reproduce your problem and did several tests:
- no problems with datatypes (short, int, String)
- no problems with names
- no problems with values ("", "&", VAL
Ahmed Ounaissa wrote:
Thx to all for your answers.
If summarize:
1. I do not have to respect the package structure for my sources (is this compliant to Java Spec ?).
You do have to for the ant task as it uses the relative directory
structure to figure out which files have
been compiled, howeve
Thx to all for your answers.
If summarize:
1. I do not have to respect the package structure for my sources (is this
compliant to Java Spec ?).
2. If -d is supplied to the compiler (javac) it disregards possible
mismatches between package class statement and compilation unit location.
On Wed, 16 Feb 2005, Peter Reilly <[EMAIL PROTECTED]> wrote:
> To clarify,
> this is normal commandline and ant task javac behaviour.
Even more than that.
I once worked on a(n open source) project[1] that kept all source
files in the same directory, even though they belonged to different
Java pa
To clarify,
this is normal commandline and ant task javac behaviour.
You have to set up the source directory correctly yourself,
there is nothing in javac to check the relative path names.
Peter
Stefan Bodewig wrote:
On Wed, 16 Feb 2005, Ahmed Ounaissa
<[EMAIL PROTECTED]> wrote:
Well the error i
Ok, i could reproduce that.
But a simple
javac -sourcepath src -d classes src\test\Test.java
does the same.
Jan
> -Ursprüngliche Nachricht-
> Von: Ahmed Ounaissa [mailto:[EMAIL PROTECTED]
> Gesendet am: Mittwoch, 16. Februar 2005 12:25
> An: Ant Users List
> Betreff: RE: Error not d
On Wed, 16 Feb 2005, Ahmed Ounaissa
<[EMAIL PROTECTED]> wrote:
> Well the error is: Inside the file
>
> package test.package;
>
> public class Test {
> ...
> }
>
> and the file is placed under directory test.
>
> The compilation succeeds and puts the .class under Test/Package
This is
Well the error is: Inside the file
package test.package;
public class Test {
...
}
and the file is placed under directory test.
The compilation succeeds and puts the .class under Test/Package
/Ahmed
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: mer
Quick retest: works for me.
Can you create a test case (small buggy java file, buildfile)?
Jan
> -Ursprüngliche Nachricht-
> Von: Ahmed Ounaissa [mailto:[EMAIL PROTECTED]
> Gesendet am: Mittwoch, 16. Februar 2005 12:11
> An: user@ant.apache.org
> Betreff: Error not detected in ANT 1.6.1 c
Hi,
Running ant compile on a java source with a buggy file (declared package does
not match the file location), ant does not report the error do you know of this
?
ant version = 1.6.1, JDK=Sun 1.4.2_03
Thx a lot,
/Ahmed
I could reproduce your problem and did several tests:
- no problems with datatypes (short, int, String)
- no problems with names
- no problems with values ("", "&", VALUE_OF_ANOTHER)
But it seems that there is a limit of constants on 84, but don´t know why.
I split that file into four classes and
Not a buildin.
1) use for changing the cache file outside of or
2) provide your own
org.apache.tools.ant.types.selectors.modifiedselector.Cache implementation.
You could build a proxy for the PropertiesfileCache and change the access
key from
absolute filename another in the get/put method
Hi,
to avoid copying a lot of files to a remote server with a task, I am
using a selector to upload only modified files.
The selector uses a cache.properties file to put informations about
the files that has already been uploaded, but the "absolute" path of each file
is used to store inform
Hello,
I'm trying to use the classconstants filterreader to read the a class file
but it fails with a IOException.
I tried removing some of the constants and at some point I found that I can
successfully read the file. Is there a limit to what classconstants can
read?
I'm using ant 1.6.0, but I a
Ninju Bohra wrote:
I am not saying this bad, I was just surprised that it was already done for
me...what the value of the Project.replaceProperties(...) method then?
The project.replaceProperties() is used by RuntimeConfigurable to
replace the properties
in a task's attributes just before the
Ninju Bohra <[EMAIL PROTECTED]> writes:
> I was writing my own task and need recieve a date format from the user.
> Wanting to make the task as flexible as possible, I want to be able to
> support values that contain ${...} text (that needs to be expanded) as
> well as verbatim text.
>
> The que
blackwater dev <[EMAIL PROTECTED]> writes:
> Hello,
>
> I am trying to connect to cvs via ant and am using this line in the cvs task:
> cvsRoot=":extssh:[EMAIL PROTECTED]:/usr/local"
>
> But I get the error:
>
> [cvs] cvs checkout: Unknown method (`extssh') in CVSROOT.
> and then bad cvsRoot
29 matches
Mail list logo