How to resolve path to to file for CLI application?

Questions about Wine on Linux
Locked
wvxvw
Level 2
Level 2
Posts: 10
Joined: Thu Aug 23, 2012 6:19 am

How to resolve path to to file for CLI application?

Post by wvxvw » Tue Sep 04, 2012 9:05 am

Hello,

I would like to debug an Adobe AIR application using their ADL program (AIR Debug Launcher). This program may be called like this:

Code: Select all

adl.exe path-to-application-descriptor.xml -C launch-directory
But it seems to be unhappy with the absolute paths (I can imagine why). The application is probably written in Java + some packager that creates native executables, if it matters.

What is the way to pass the path to adl.exe so that it be able find it?

TIA

EDIT: I think I sort of solved the problem, still would like to know more about this, this is what I did (this is an Ant script that launches the debugger):

Code: Select all

  <property environment="env"/>
  <target name="debug-air-wine" description="Runs AIR debugger with our application" >
    <!-- Use this for debugging -->
    <mkdir dir="${env.HOME}/.wine/drive_c/X/"/>
    <copy todir="${env.HOME}/.wine/drive_c/X/" includeemptydirs="false">
      <fileset dir="${basedir}/X">
        <exclude name="**/*.as" />
        <exclude name="**/*.mxml" />
        <exclude name="**/build.xml" />
        <exclude name="**/*.properties" />
        <exclude name="**/*.air" />
        <exclude name="**/*.pfx" />
        <exclude name="**/*.swf" />
        <include name="**/*" />
      </fileset>
    </copy>
    <exec executable="wine" failonerror="true">
      <arg line="${FLEX_HOME}/bin/adl.exe C:/X/X-app.xml -C C:/Novisign" />
    </exec>
  </target>

vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: How to resolve path to to file for CLI application?

Post by vitamin » Wed Sep 05, 2012 7:48 am

wvxvw wrote:What is the way to pass the path to adl.exe so that it be able find it?
Use http://wiki.winehq.org/winepath when in doubt.

Example:

Code: Select all

[~]$wine winepath -w .
Z:\home\vitaliy\.

wvxvw
Level 2
Level 2
Posts: 10
Joined: Thu Aug 23, 2012 6:19 am

Re: How to resolve path to to file for CLI application?

Post by wvxvw » Thu Sep 06, 2012 12:35 am

Thank you, didn't know about that!

Locked