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

  • From: Ion Iovu < >
  • To:
  • Subject: [nbusers] Re: Netbeans ANT deployment tasks & dist/gfdeploy
  • Date: Thu, 10 Jan 2013 02:05:39 +0200

Grover,

just adding new target definitions won't have them executed. You need to add it to some target's depends if you don't call it manually, as:
$ ant pre-dist

To keep things simple, don't play with run (which means deploy to application server.) I understand your problem is a packaging one. There fore use 'Build' or 'Clean and Build.' Deploying won't help
Then check the content of web.xml by recursively unpacking the ear and the war

What about the ${web.realmName} property, where do you define it?

Regards

On Wed, Jan 9, 2013 at 6:39 PM, Grover Blue < " target="_blank"> > wrote:
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 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close