Skip to main content
Participant
May 17, 2012
Question

Filename contains restricted character '\': C:\libraries\the\path\to\the\file\directory\FMODAirN

  • May 17, 2012
  • 3 replies
  • 1436 views

Could this be a bug within adt.jar?

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\FMODAirN

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\FMODAirN-->

          </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/FMODAirNativeExtension.dll"/><!--Filename contains restricted character '\': C:\libraries\the\path\to\the\file\directory\FMODAirN-->

          </java>

</target>

Any help would be appreciated!

This topic has been closed for replies.

3 replies

chris.campbell
Legend
May 18, 2012

Asking one of our ADT experts to see if they've seen this before.  You might also want to cross post this over on the Flash Builder forums.

victorudeAuthor
Participant
May 19, 2012

Thanks, Chris.

I'll do that as well

chris.campbell
Legend
May 23, 2012

Heard back from our ADT guy and he doesn't believe it's an ADT specific problem.  We run ADT tests daily on Windows and he's never seen this error before.  He suggests you try to find the full path and run the command from the command line directly to see if the error still occurs.