Build Ant Error Compile Failed; At Line Fork="${need.javac.fork}"
When i try to build my project i got error line custom_rules.xml:63 is: line 78 is : fork='${need.javac.fork}'> Parameters of build are -Dsdk.dir=C:\Users\bou\sdk -Ddeploy.env=
Solution 1:
I resolve the problem like this
in my custom_rules.xml i add
<targetname="-compile"depends="-pre-build, -build-setup, -code-gen, -pre-compile"><do-only-if-manifest-hasCodeelseText="hasCode = false. Skipping..."><!-- merge the project's own classpath and the tested project's classpath --><pathid="project.javac.classpath"><pathrefid="project.all.jars.path" /><pathrefid="tested.project.classpath" /><pathpath="${java.compiler.classpath}" /><filesetdir="compile-libs"includes="*.jar"/></path><javacencoding="${java.encoding}"source="${java.source}"target="${java.target}"debug="true"extdirs=""includeantruntime="false"destdir="${out.classes.absolute.dir}"bootclasspathref="project.target.class.path"verbose="${verbose}"classpathref="project.javac.classpath"fork="${need.javac.fork}"><srcpath="${source.absolute.dir}" /><srcpath="${gen.absolute.dir}" /><compilerargline="${java.compilerargs}" /></javac><!-- if the project is instrumented, intrument the classes --><ifcondition="${build.is.instrumented}"><then><echolevel="info">Instrumenting classes from ${out.absolute.dir}/classes...</echo><!-- build the filter to remove R, Manifest, BuildConfig --><getemmafilterappPackage="${project.app.package}"libraryPackagesRefId="project.library.packages"filterOut="emma.default.filter"/><!-- define where the .em file is going. This may have been
setup already if this is a library --><propertyname="emma.coverage.absolute.file"location="${out.absolute.dir}/coverage.em" /><!-- It only instruments class files, not any external libs --><emmaenabled="true"><instrverbosity="${verbosity}"mode="overwrite"instrpath="${out.absolute.dir}/classes"outdir="${out.absolute.dir}/classes"metadatafile="${emma.coverage.absolute.file}"><filterexcludes="${emma.default.filter}" /><filtervalue="${emma.filter}" /></instr></emma></then></if><!-- if the project is a library then we generate a jar file --><ifcondition="${project.is.library}"><then><echolevel="info">Creating library output jar file...</echo><propertyname="out.library.jar.file"location="${out.absolute.dir}/classes.jar" /><if><condition><lengthstring="${android.package.excludes}"trim="true"when="greater"length="0" /></condition><then><echolevel="info">Custom jar packaging exclusion: ${android.package.excludes}</echo></then></if><propertybyreplacename="project.app.package.path"input="${project.app.package}"replace="."with="/" /><jardestfile="${out.library.jar.file}"><filesetdir="${out.classes.absolute.dir}"includes="**/*.class"excludes="${project.app.package.path}/R.class ${project.app.package.path}/R$*.class ${project.app.package.path}/BuildConfig.class"/><filesetdir="${source.absolute.dir}"excludes="**/*.java ${android.package.excludes}" /></jar></then></if></do-only-if-manifest-hasCode></target><targetname="-package-resources"depends="-crunch"><!-- only package resources if *not* a library project --><do-only-if-not-libraryelseText="Library project: do not package resources..." ><aaptexecutable="${aapt}"command="package"versioncode="${version.code}"versionname="${version.name}"debug="${build.is.packaging.debug}"manifest="${out.manifest.abs.file}"assets="${asset.absolute.dir}"androidjar="${project.target.android.jar}"apkfolder="${out.absolute.dir}"nocrunch="${build.packaging.nocrunch}"resourcefilename="${resource.package.file.name}"resourcefilter="${aapt.resource.filter}"libraryResFolderPathRefid="project.library.res.folder.path"libraryPackagesRefid="project.library.packages"libraryRFileRefid="project.library.bin.r.file.path"previousBuildType="${build.last.target}"buildType="${build.target}"ignoreAssets="${aapt.ignore.assets}"manifestpackage="${fantouch.packagename}"
><respath="${out.res.absolute.dir}" /><respath="${resource.absolute.dir}" /><!-- <nocompress /> forces no compression on any files in assets or res/raw --><!-- <nocompress extension="xml" /> forces no compression on specific file extensions in assets and res/raw --></aapt></do-only-if-not-library></target>
Post a Comment for "Build Ant Error Compile Failed; At Line Fork="${need.javac.fork}""