Page 1 of 1

Build Error when using apache-ant

Posted: Wed Jul 12, 2006 12:54 pm
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?

Work Around

Posted: Wed Jul 12, 2006 1:24 pm
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.

Posted: Wed Jul 12, 2006 3:25 pm
by MichaelNesmith
Thanks, I'll report this and try to get it resolved.