ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Nix" <Jeremy....@sfsltd.com>
Subject Java task failing with AntSecurityException
Date Mon, 10 Nov 2003 20:27:18 GMT
I'm trying to use the Java task to compile my xsl documents into
templates.

Here's the ant code:
<java classname="org.apache.xalan.xsltc.cmdline.Compile"
		failonerror="${javac.failonerror}"
		dir="${basedir}"
		args="-d ${build.dir} -p com.sfsltd.documents.xsl
view/xsl/avm_hve.xsl">
	<classpath>
		<fileset dir="${ext.lib.shared}" casesensitive="false">
		  <include name="xml-apis.jar"/>
		  <include name="xerces_2_4_0.jar"/>
		  <include name="xalan_2_5_2.jar"/>
		</fileset>
	</classpath>
</java>

This produces the following error:
        [java] The args attribute is deprecated. Please use nested arg
elements.
        [java] org.eclipse.ant.core.AntSecurityException
        [java] 	at
org.eclipse.ant.internal.core.ant.AntSecurityManager.checkExit(AntSecuri
tyManager.java:44)
        [java] 	at java.lang.Runtime.exit(Runtime.java:88)
        [java] 	at java.lang.System.exit(System.java:715)
        [java] 	at
org.apache.xalan.xsltc.cmdline.Compile.main(Compile.java:187)
        [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        [java] 	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        [java] 	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        [java] 	at java.lang.reflect.Method.invoke(Method.java:324)
        [java] 	at
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:208)
        [java] 	at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:150)
        [java] 	at org.apache.tools.ant.taskdefs.Java.run(Java.java:443)
        [java] 	at
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:163)
        [java] 	at
org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
        [java] 	at org.apache.tools.ant.Task.perform(Task.java:341)
        [java] 	at org.apache.tools.ant.Target.execute(Target.java:309)
        [java] 	at
org.apache.tools.ant.Target.performTasks(Target.java:336)
        [java] 	at
org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        [java] 	at
org.apache.tools.ant.Project.executeTargets(Project.java:1255)
        [java] 	at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunne
r.java:583)
        [java] 	at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunne
r.java:381)
        [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        [java] 	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        [java] 	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        [java] 	at java.lang.reflect.Method.invoke(Method.java:324)
        [java] 	at
org.eclipse.ant.core.AntRunner.run(AntRunner.java:337)
        [java] 	at
org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDelegate$1.run
(AntLaunchDelegate.java:205)
        [java] 	at java.lang.Thread.run(Thread.java:534)

Anyone have any ideas?

_________________________________
Jeremy Nix
Southwest Financial Services, LTD.
Jeremy.Nix@sfsltd.com
(513) 621-6699 ext.1158


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message