ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44900] Using ant java api: Exec: Nested args are not passed to task
Date Tue, 29 Apr 2008 09:01:44 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44900


Peter Reilly <peterreilly@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Exec: Nested args are not   |Using ant java api: Exec:
                   |passed to task              |Nested args are not passed
                   |                            |to task




--- Comment #1 from Peter Reilly <peterreilly@apache.org>  2008-04-29 02:01:44 PST ---
Thanks for the rar file.

I have changed the summary to reflect the fact that
this is seem only when using the java api.

There is a number of problems with the .rar file.

1) it is a rar file - use tar.gz or zip
2) it is not selfcontained - the launch.sh and build.sh
   refer to jar files in variosu places, also they use /usr/bin/sh
   which is not a normal localtion for sh.
3) sh build.sh works, but sh launch.sh looks for files outside
   the directory and fails.

new launch.sh
-------
CLASSPATH=$ANT_HOME/lib/ant.jar:$ANT_HOME/lib/ant-antlr.jar:$ANT_HOME/ant-launcher.jar:commons-lang.jar:log4j.jar:.
java -cp $CLASSPATH TestAnt
-------
new build.sh
------------
CLASSPATH=$ANT_HOME/lib/ant.jar:$ANT_HOME/lib/ant-antlr.jar:$ANT_HOME/lib/ant-launcher.jar:commons-lang.jar:log4j.jar:.
javac -Xlint:unchecked -cp $CLASSPATH Log4jAntListener.java
javac -Xlint:unchecked -cp $CLASSPATH AntProcess.java
javac -Xlint:unchecked -cp $CLASSPATH TestAnt.java
--------

I copied in log4j.jar (shudder) and commons-lang.jar into the directory.

The failure when running launch is:

[preilly@localhost bug44900-exec]$ sh launch.sh
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /tests/testant/testant.log (No such file or
directory)
        at java.io.FileOutputStream.openAppend(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
        at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
        at
org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:194)
        at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:164)
        at
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:257)
        at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:133)
        at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:97)
        at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:689)
        at
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:647)
        at
org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:544)
        at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:440)
        at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:476)
        at
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471)
        at org.apache.log4j.LogManager.<clinit>(LogManager.java:125)
        at org.apache.log4j.Logger.getLogger(Logger.java:105)
        at TestAnt.main(TestAnt.java:7)
Exception in thread "main" java.lang.IllegalArgumentException: build file not
found! /Harvest/pruebas/Xavi/bugant/permisions.xml
        at AntProcess.setBuild(AntProcess.java:79)
        at AntProcess.<init>(AntProcess.java:42)
        at TestAnt.main(TestAnt.java:17)


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message