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 10:15:34 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44900





--- Comment #8 from Xavi <ettikx@gmail.com>  2008-04-29 03:15:34 PST ---
Sorry, wrong classpath :( try again with new..

I tested it in windows (with xcopy), and xcopy it's executed without
parameters:

29 abr 2008 12:11:46 [DEBUG] - Target "permision" started
29 abr 2008 12:11:46 [DEBUG] - Task "echo" started
29 abr 2008 12:11:46 [INFO ] - Modify directories permissions testfolder, mask
755
29 abr 2008 12:11:46 [DEBUG] - Task "echo"finished 
29 abr 2008 12:11:46 [DEBUG] - Task "exec" started
29 abr 2008 12:11:46 [DEBUG] - Current OS is Windows XP
29 abr 2008 12:11:46 [DEBUG] - Executing 'xcopy'
The ' characters around the executable and arguments are
not part of the command.
29 abr 2008 12:11:46 [DEBUG] - Execute:Java13CommandLauncher: Executing 'xcopy'
The ' characters around the executable and arguments are
not part of the command.
29 abr 2008 12:11:46 [INFO ] - 0 archivos copiados
29 abr 2008 12:11:46 [INFO ] - NĀ£mero de par metros no v lido
29 abr 2008 12:11:46 [ERROR] - Task "exec" finished with error (null)
29 abr 2008 12:11:46 [ERROR] - Target "permision" finished with error (null)
C:\testcase\permisions.xml:8: exec returned: 4
        at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:636)
        at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:662)
        at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:487)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

(In reply to comment #6)
> Now I get:
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/tools/ant/launch/AntMain
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
>         at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>         at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:289)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>         at org.apache.tools.ant.Project.initProperties(Project.java:308)
>         at org.apache.tools.ant.Project.init(Project.java:295)
>         at AntProcess.execute(AntProcess.java:47)
>         at TestAnt.main(TestAnt.java:26)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.tools.ant.launch.AntMain
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:289)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>         ... 16 more
> 


-- 
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