Build Error when using apache-ant

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

Build Error when using apache-ant

Post by KenRichard »

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

Post by KenRichard »

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:

Post by MichaelNesmith »

Thanks, I'll report this and try to get it resolved.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply