ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Porter <martin.por...@liberica.com>
Subject JAR update="true" bug
Date Thu, 13 Feb 2003 16:47:17 GMT

I am experiencing problems with updating a JAR file and see in the
archives that it is a bug which is reported to be fixed in the latest
nightly
build but I have just taken that and it still does not work. My task is very
simple:-

<target name="update_framework_server_jar" depends="jar_server_framework">
    <jar update="true"
jarfile="${liberica.jarsReg}/FrameworkServer_v1.0.jar">
        <fileset dir="${liberica.classesEJB}">
            <include name="com/liberica/framework/ejb/**"/>
        </fileset>
    </jar>
</target>

The error I am getting (unlike some of the other posts) which I have cut
down
for readability is:-

update_framework_server_jar:

      [jar] adding entry com/liberica/tools/deploy/LibericaDeploy.class from
E:\Liberica\Deployment\BuildZone\inventix14\jars\reg\FrameworkServer_v1.0.ja
r
      [jar] adding entry com/liberica/tools/deploy/LibericaDeployGUI.class
from
E:\Liberica\Deployment\BuildZone\inventix14\jars\reg\FrameworkServer_v1.0.ja
r
      [jar] adding entry com/liberica/tools/support/PlatformDetector.class
from
E:\Liberica\Deployment\BuildZone\inventix14\jars\reg\FrameworkServer_v1.0.ja
r
      [jar] adding entry
com/liberica/tools/support/RunPlatformDetector.class from
E:\Liberica\Deployment\BuildZone\inventix14\jars\reg\FrameworkServer_v1.0.ja
r
      [jar] closing input stream from
E:\Liberica\Deployment\BuildZone\inventix14\jars\reg\FrameworkServer_v1.0.ja
r
      [jar] com\liberica\framework\ejb added as com/liberica/framework/ejb
doesn't exist.
      [jar] com\liberica\framework\ejb\common added as
com/liberica/framework/ejb/common doesn't exist.
      [jar] com\liberica\framework\ejb\common\CommonServicesBean.class added
as com/liberica/framework/ejb/common/CommonServicesBean.class doesn't exist.
      [jar] com\liberica\framework\ejb\common\CommonServicesBeanEJB.class
added as com/liberica/framework/ejb/common/CommonServicesBeanEJB.class
doesn't exist.
      [jar] com\liberica\framework\ejb\common\CommonServicesBeanHome.class
added as com/liberica/framework/ejb/common/CommonServicesBeanHome.class
doesn't exist.
      [jar] com\liberica\framework\ejb\common\LanguageBean.class added as
com/liberica/framework/ejb/common/LanguageBean.class doesn't exist.
      [jar] com\liberica\framework\ejb\common\LanguageBeanEJB.class added as
com/liberica/framework/ejb/common/LanguageBeanEJB.class doesn't exist.
      [jar] com\liberica\framework\ejb\common\LanguageBeanHome.class added
as com/liberica/framework/ejb/common/LanguageBeanHome.class doesn't exist.
      [jar] com\liberica\framework\ejb\common\SecurityBean.class added as
com/liberica/framework/ejb/common/SecurityBean.class doesn't exist.
      [jar] com\liberica\framework\ejb\common\SecurityBeanEJB.class added as
com/liberica/framework/ejb/common/SecurityBeanEJB.class doesn't exist.
      [jar] com\liberica\framework\ejb\common\SecurityBeanHome.class added
as com/liberica/framework/ejb/common/SecurityBeanHome.class doesn't exist.
      [jar] com\liberica\framework\ejb\common\ServerContextBean.class added
as com/liberica/framework/ejb/common/ServerContextBean.class doesn't exist.
      [jar] com\liberica\framework\ejb\common\ServerContextBeanEJB.class
added as com/liberica/framework/ejb/common/ServerContextBeanEJB.class
doesn't exist.
      [jar] com\liberica\framework\ejb\common\ServerContextBeanHome.class
added as com/liberica/framework/ejb/common/ServerContextBeanHome.class
doesn't exist.

BUILD FAILED
file:///E:/Liberica/Deployment/ApacheAnt/Build/BuildFiles/build-inventIX.xml
:305: Unable to rename old file to temporary file
        at org.apache.tools.ant.taskdefs.Zip.executeMain(Zip.java:399)
        at org.apache.tools.ant.taskdefs.Zip.execute(Zip.java:323)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:227)
        at org.apache.tools.ant.Task.perform(Task.java:388)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1389)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1263)
        at org.apache.tools.ant.Main.runBuild(Main.java:611)
        at org.apache.tools.ant.Main.start(Main.java:198)
        at org.apache.tools.ant.Main.main(Main.java:245)

Looking at the trace it seems to been reading the existing JAR and adding
the new items at
the end of the JAR process but then failing to rename the temporary one.

I have tried running on Windows 2000 and have tried setting both TEMP & TMP
variables
in my script that runs Ant but it does not solve the problem. This is with
the latest
nightly build of ant taken today.

Is this related to the original problem or am I barking up the wrong
tree...?

Thanks
Martin


Mime
View raw message