Build Error when using apache-ant

Got a problem you cannot solve? Try here.
KenRichard
Posts: 6
Joined: Wed Jul 12, 2006 12:43 pm

Build Error when using apache-ant

Postby KenRichard » Wed Jul 12, 2006 12:54 pm

I just purchased InstallAware and am having problems integrating InstallAware with out ant build process.

When I use the command line by itself everything works fine. When I run the command line from within an ant script the build fails as soon as it tries to package a jar file.

The problem is that the jar file has already been loaded by ant so the operating system says that it is in use.

We used the same procedure with wise without problems. I assume that InstallAware is opening files for "read/write" access during the compression instead of "read" access.

The error message is:
Error during build: Cannot open file "<path to jar file>". The process cannot access the file because it is being used by another process

Are there any work arounds?

KenRichard
Posts: 6
Joined: Wed Jul 12, 2006 12:43 pm

Work Around

Postby KenRichard » Wed Jul 12, 2006 1:24 pm

I created a work around by copying the files that are in-use to another directory and updating the installaware script to use the other directory.

FYI: Files marked as read-only can be compressed so it must be a problem with something like FILE_SHARE_NONE.

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Wed Jul 12, 2006 3:25 pm

Thanks, I'll report this and try to get it resolved.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 201 guests