a simple question regarding condition if/unless

2012-05-21 Thread xsli2
The target "test" calls two other targets: Now, I want to add some condition: when the property "abc" is available(regardless of its value), only run target "testB", skipping "testA". I know I can use unless="abc" in target "testA" definition block. The fact is that "testA" is similar pattern:

How to turn off the warnings during ant build?

2012-04-04 Thread xsli2
Hi: When I run ant, a lot of warnings are printed out on the screen. It is very daunting. It makes new people to feel, as first response, this is broken. But actually, the build is successful. I pasted a few warning messages below. In our real code, there are hundreds of them. [javac] /abc/ef

the classes in rt.jar cannot be found during ant build

2012-04-03 Thread xsli2
Hi, In my build.xml, ... ... The environment variable JAVA_HOME has been set to: C:\Program Files\Java\jdk1.6.0_24 When I run it, those classes inside rt.jar cannot be found. I have print out, using echo, the class

One Ant buildfile calling its subdir buildfile, how to change the base dir?

2012-01-11 Thread xsli2
After some investigation, I would like to re-phrase my question. Here are my files: main/build.xml containing a target invoking a target in sub directory

Help: create an executable JAR file including 3rd party JAR files

2011-12-22 Thread xsli2
Dear All: My directory structure is the following: libs/externa/ containing a.jar, b.jar libs/installed/ the generated runnable JAR file, "sample.jar", will be here src/ containing Java source files build/ containing Java class files The main class is x.y.z.MyMain I have had a really hard time