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

  • From: Grover Blue < >
  • To:
  • Subject: [nbusers] Re: Netbeans ANT deployment tasks & dist/gfdeploy
  • Date: Wed, 9 Jan 2013 10:13:31 -0500

Ion,

Thanks for your help.  The only markup I add to build.xml is :

    <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 get run during the nbproject/build-impl.xml execution.


On Wed, Jan 9, 2013 at 6:05 AM, Ion Iovu < " target="_blank"> > wrote:
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?






--
“If the American people ever allow private banks to control the issue of their currency, first by inflation, then by deflation, the banks...will deprive the people of all property until their children wake-up homeless on the continent their fathers conquered... The issuing power should be taken from the banks and restored to the people, to whom it properly belongs."   -- Thomas Jefferson

"Government big enough to supply everything...is big enough to take everything you have. The course of history shows that as a government grows, liberty decreases" --- Thomas Jefferson

www.CampaignForLiberty.org


[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 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close