Could this be a bug within adt.jar?
(original post: http://forums.adobe.com/message/4417531#4417531)
When running the adt.jar java app as an ant task within Flash Builder 4 I get the following error:
Filename contains restricted character '\': C:\libraries\the\path\to\the\file\directory\FMODAirNativeExtension.dll
Every single property expanded within the <java> ant task with the exception of ane.target.platform includes ${basedir} which evaluates to C:\libraries\the\path\to\the\file\, yet only the last parameter in the argument list for adt.jar complains regarding a restricted character:
ane.extension.descriptor=${basedir}/directory/extension.xml
ane.keystore=${basedir}/directory/test.p12
ane.src.library=${basedir}/directory/library.swf
ane.target.platform=Windows-x86
ane.project.name=${basedir}/directory/air.fmod.ane.ane
ane.swc.name=${basedir}/directory/air.fmod.ane.swc
native.library=${basedir}/directory/FMODAirNativeExtension.dll
<target name="default" depends="clean, init">
<java jar="${FLEX_HOME}/lib/adt.jar" fork="true">
<arg value="-package"/>
<arg value="-tsa"/>
<arg value="none"/>
<arg value="-storetype"/>
<arg value="pkcs12"/>
<arg value="-keystore"/>
<arg value="${ane.keystore}"/>
<arg value="-storepass"/>
<arg value="test"/>
<arg value="-target"/>
<arg value="ane"/>
<arg value="${ane.project.name}"/>
<arg value="${ane.extension.descriptor}"/>
<arg value="-swc"/>
<arg value="${ane.swc.name}"/>
<arg value="-platform"/>
<arg value="${ane.target.platform} ${ane.src.library}"/><!--missing library error if ${ane.src.library} is on its own line-->
<arg value="${native.library}"/><!--Filename contains restricted character '\': C:\libraries\the\path\to\the\file\directory\FMODAirNativeExtension.dll-->
</java>
</target>
<target name="default" depends="clean, init">
<java jar="${FLEX_HOME}/lib/adt.jar" fork="true">
<arg value="-package"/>
<arg value="-tsa"/>
<arg value="none"/>
<arg value="-storetype"/>
<arg value="pkcs12"/>
<arg value="-keystore"/>
<arg value="${ane.keystore}"/>
<arg value="-storepass"/>
<arg value="test"/>
<arg value="-target"/>
<arg value="ane"/>
<arg value="${ane.project.name}"/>
<arg value="${ane.extension.descriptor}"/>
<arg value="-swc"/>
<arg value="${ane.swc.name}"/>
<arg value="-platform"/>
<arg value="${ane.target.platform} ${ane.src.library}"/>
<arg value="-C"/>
<arg value="C:/libraries/the/path/to/the/file/directory/FMODAirNativeExten sion.dll"/><!--Filename contains restricted character '\': C:\libraries\the\path\to\the\file\directory\FMODAirNativeExtension.dll-->
</java>
</target>
Any help would be appreciated! ![]()
North America
Europe, Middle East and Africa
Asia Pacific