[nbusers] Re: Netbeans ANT deployment tasks & dist/gfdeploy

  • From: Ion Iovu < >
  • To:
  • Subject: [nbusers] Re: Netbeans ANT deployment tasks & dist/gfdeploy
  • Date: Wed, 9 Jan 2013 13:05:06 +0200

Grover,

what's the sequence of ant commands that you use?

Regards

On Wed, Jan 9, 2013 at 1:12 AM, Grover Blue < " target="_blank"> > wrote:
I have an EAR project that includes a web project.  From the EAR project, I use ant to modify the copied WAR file (after build-impl.xml copies it to the build directory) to change the deployment descriptor.


    <target name="pre-dist">
        <unzip src=""${build.dir}/web.war"" dest="${build.dir}/web"/>
        <replace file="${build.dir}/web/WEB-INF/web.xml" token="@REALM_NAME@" value="${web.realmName}"/>
        <delete file="${build.dir}/web.war"/>
        <zip destfile="${build.dir}/web.war" basedir="${build.dir}/web" />
        <delete dir="${build.dir}/web" />
    </target>


That works great for generating the EAR file, but when I deploy & run the deployment descriptor used ends up being the unmodified web.xml.  The file is located here:

<EAR_PROJECT>/dist/gfdeploy/ear-project/web/WEB-INF/web.xml

The archived dist/gddeploy/ear-project/web.WAR does contain a modified web.xml, though.  I deleted the Netbeans and Glassfish cache but it's still using an unmodified web.xml in gfdeploy.

Why is Netbeans using the original project source and not the modified dist/gddeploy/ear-project/web.WAR or build/web.WAR files?





[nbusers] Netbeans ANT deployment tasks & dist/gfdeploy

Grover Blue 01/08/2013

[nbusers] Re: Netbeans ANT deployment tasks & dist/gfdeploy

Ion Iovu 01/09/2013

[nbusers] Re: Netbeans ANT deployment tasks & dist/gfdeploy

Grover Blue 01/09/2013

[nbusers] Re: Netbeans ANT deployment tasks & dist/gfdeploy

Grover Blue 01/09/2013

[nbusers] Re: Netbeans ANT deployment tasks & dist/gfdeploy

Grover Blue 01/09/2013

[nbusers] Re: Netbeans ANT deployment tasks & dist/gfdeploy

Ion Iovu 01/10/2013

[nbusers] Re: Netbeans ANT deployment tasks & dist/gfdeploy

Grover Blue 01/10/2013

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close