[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 11:39:28 -0500

So, I added the following markup to build.xml, but it requires me to "Run" the application twice before the Realm is recognized (due to the fact the the old web.xml exists after the first "Run").


    &lt; target name="post-run-deploy" &gt;
        &lt; delete dir="${dist.dir}/gfdeploy/awi-ea-cmc/AWI2_war" /&gt;
        &lt; unzip src=""${build.dir}/AWI2.war"" dest="${dist.dir}/gfdeploy/awi-ea-cmc/AWI2_war" /&gt;
    &lt;/ target &gt;

The follow, though, still doesn't work by itself:

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




On Wed, Jan 9, 2013 at 10:24 AM, Grover Blue < " target="_blank"> > wrote:

    <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 10:13 AM, Grover Blue < " target="_blank"> > wrote:


    <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.




--
“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



--
“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