ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Adams" <DAd...@ignitesports.com>
Subject spaces in javac directories
Date Fri, 20 Sep 2002 19:15:32 GMT
Hi,
I am trying to compile files from and back into a directory structure that contains spaces,
the actual task code follows. 

I have tried a number of different quoting methods ('" "', ' ', &quot; &quot;, putting
a \ in front of the space to escape). None of these methods seem to work. 

Any ideas? 

	<target name="java.compile" description=" Java compilation task">
		<property name="javac.classes" value="&quot;/autobuild/projects/core/Version 3.2/build/java/&quot;"/>
		<property name="javac.libs" value="&quot;/autobuild/projects/core/Version 3.2/build/java/&quot;"/>
		<property name="javac.debug" value="on"/>
		<property name="javac.deprecation" value="on"/>
		<property name="javac.destdir" value="&quot;/autobuild/projects/core/Version 3.2/build/java/&quot;"/>
		<property name="javac.excludes" value=""/>
		<property name="javac.includes" value="**/*.java"/>
		<property name="javac.fork" value="true"/>
		<property name="javac.includeAntRuntime" value="false"/>
		<property name="javac.includes" value=""/>
		<property name="javac.optimize" value="on"/>
		<property name="javac.packagenames" value="core.jar"/>
		<property name="javac.srcdir" value="&quot;/autobuild/projects/core/Version 3.2/src/java/&quot;"/>
		<property name="javac.verbose" value="true"/>
		<property environment="env"/>
		<property name="ant.home" value="${env}.ANT_HOME"/>
		
		<fileset id="buildlibs" dir="${javac.libs}"/>

		<fileset id="locallibs" dir="${dir.local.lib}"/>
		
		<echo message="Compiling java project"/>
		<echo message="Compiling with debugging ${javac.debug}"/>
		<echo message="build.compiler-> ${build.compiler}"/>
		<echo message="javac.includes-> ${javac.includes}"/>
		<echo message="javac.excludes-> ${javac.excludes}"/>
		<echo message="javac.destdir-> ${javac.destdir}"/>
		<echo message="javac.srcdir-> ${javac.srcdir}"/>
		<echo message="javac.classes-> ${javac.classes}"/>
		<echo message="javac.packagenames-> ${javac.packagenames}"/>
		<echo message="dir.build.java-> ${dir.build.java}"/>

		<javac 
			debug="on"
			destdir="${javac.destdir}"
			srcdir="${javac.srcdir}"
			verbose="${javac.verbose}"
			optimize="${javac.optimize}"
			fork="${javac.fork}"
			includeAntRuntime="false"
			deprecation="${javac.deprecation}">
			<classpath>
				<pathelement location="${javac.classes}"/>
				<fileset refid="globallibs"/>
				<fileset refid="locallibs"/>
				<fileset refid="buildlibs"/>
			</classpath>
			<include name="${javac.includes}"/>
			<exclude name="${javac.excludes}"/>
		 </javac>
	</target>

Thanks in advance for the help.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
David Adams
Ignite Sports (www.ignitesports.com)
Voice: 773.293.4300
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message