Hi Michael,

Flanakin Michael C Ctr HQ OSSG/OMR wrote:
I saw some discussion in regards to the "path is too long" exception, but never saw a resolution. Does anyone know about this or how to get around it?
 
Michael Flanakin
 
I get those exceptions a lot when scripting InstallShield project builds.  The solution that I have found is to use the oldschool DOS "subst" command, to create a new drive pointing to my folder, thus shortening my paths.

Here is what I do:

<target name="substituteDrive">
    <exec program="cmd.exe" commandline="/c subst /D R:" failonerror="false"/>
    <exec program="cmd.exe" commandline="/c subst R: &quot;${absolute.build.dir}&quot;" failonerror="false"/>
</target>

<target name="unsubstituteDrive">
    <exec program="cmd.exe" commandline="/c subst /D R:" failonerror="false"/>
</target>

I hope that helps.

Hristo Deshev
------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to