ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Singer" <sin...@dcs-systeme.de>
Subject JVC problem
Date Mon, 07 May 2001 10:10:19 GMT
Hello,

I tried to use the ant 1.3 with jvc and get following exception when
executing:

E:\geoi-2000\build.xml:26: Error running jvc compiler
--- Nested Exception ---
java.io.IOException: CreateProcess: jvc /d E:\geoi-2000\build\classes /cp:p
E:\g
eoi-2000\build\classes;E:\geoi-2000\lib\dcs-base.zip;C:\jdk1.3\lib\tools.jar
;C:\
jakarta-ant-1.3\lib\parser.jar;C:\jakarta-ant-1.3\lib\jaxp.jar;C:\jakarta-an
t-1.
3\lib\ant.jar;C:\jdk1.3\jre\lib\rt.jar;E:\geoi-2000\src /x- /nomessage
/nologo /
O @E:\geoi-2000\jikes-2837334691734733212 error=2
        at java.lang.Win32Process.create(Native Method)
        at java.lang.Win32Process.<init>(Win32Process.java:66)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Runtime.java:551)
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.jav
a:509)
        at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:329)
        at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExtern
alCompile(DefaultCompilerAdapter.java:329)
        at org.apache.tools.ant.taskdefs.compilers.Jvc.execute(Jvc.java:135)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:461)
        at org.apache.tools.ant.Target.execute(Target.java:153)
        at org.apache.tools.ant.Project.runTarget(Project.java:898)
        at org.apache.tools.ant.Project.executeTarget(Project.java:536)
        at org.apache.tools.ant.Project.executeTargets(Project.java:510)
        at org.apache.tools.ant.Main.runBuild(Main.java:421)
        at org.apache.tools.ant.Main.main(Main.java:149)e.de

JVC (from our J++ installation; please, don't blame me!) is in the path, it
could be run on the command line. Ant itself is setup corrently, because it
works nice with SUNs Jdk1.3.

The build.xml looks like:
<project name="GEOi[2000]" default="dist" basedir=".">

	<!-- set global properties for this build -->
	<property name="src"     value="src"/>
	<property name="build"   value="build"/>
	<property name="classes" value="${build}/classes"/>
	<property name="lib"     value="lib"/>

	<property name="build.compiler" value="jvc"/>

	<target name="init">
		<!-- Create the build directory structure -->
		<mkdir dir="${classes}"/>
		<mkdir dir="${classes}/images"/>
		<mkdir dir="${jars}"/>
		<mkdir dir="${log}"/>
	</target>

	<target name="compile" depends="init">
		<!-- Compile the java code from ${src} into ${build} -->
		<javac destdir="${classes}"
		       optimize="on"
		       deprecation="on">
			<src path="${src}"/>
			<classpath>
				<pathelement location="${lib}/dcs-base.zip"/>
			</classpath>
		</javac>
	</target>

</project>

What's wrong? Why there something is told about jikes in the exception?

Regards
Thomas Singer


Mime
View raw message