RE: Delima to use or not to use build.xml
> 1)How to set the Target name for ="TgtName" > > "" > >in property Using ANT API ("org.apache.tools.ant.*") http://api.dpml.net/ant/1.6.5/org/apache/tools/ant/Project.html#setProperty( java.lang.String,%20java.lang.String) > 2)How to execute the argumented target using ANT API's. Take a look at some examples of some systems that handle embedded ant. The DPML Depot system is the one I use (http://www.dpml.net/depot) but there are other more prominent/well-known examples on the net that you should probably dig into. Cheers, Steve. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Pritesh can you help me here.
I have a script which deploys an application in Tomcat in Windows I run it through eclipse. My First question is Can I run this script from the same eclipse to deploy an aplication on Unix and Tomcat installed on Unix or I need to use command prompt. Please reply Waiting for your reply.. Regards Shweta
Substituting the value according to the property name
> We are replacing the occurrence of a string with another value by > reading a predefined property file as given below. > > > > > > > value="${ems.versionmajor}"/> > > > The above file i.e. ems.iap_xml is getting replaced perfectly with the > defined values. > > For example the token $PRODUCT_VERSIONMAJOR$ has been replaced with > '1' after running the above script.(as defined in build.properties > file) > > However, if the user made some changes for the file emsMaster.iap_xml, > the requirement is to bring back the old strings(values) for those > property names. So the script which has been used for replacing back > is as below. > > > > >value="$$PRODUCT_VERSIONMAJOR$$"/> > > > However, with this script iam facing the problem that what ever the > property values are '1' in the emsMaster.iap_xml it is getting > replaced with values $PRODUCT_VERSIONMAJOR$ > > For example the emsMaster.iap_xml file contains the following entries > : > > > 1 > > > 1 > > > In the above script, the requirement is to replace the value of 1 for > the ProductVersionMajor property to $PRODUCT_VERSIONMAJOR$ > but not to the imageOption property. How can we achieve this one? > > Thanks, > Srinivas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Delima to use or not to use build.xml
Hi Form How to write the equivalent of the "FTP_UPLOAD" Task by using ANT API ("org.apache.tools.ant.*") Mr McConell the site http://www.dpml.net/depot u reffred is probably down,and timing out on my FireFox Browser. Please somebody help he. with regards Karthik -Original Message- From: Stephen McConnell [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 1:39 PM To: 'Ant Users List' Subject: RE: Delima to use or not to use build.xml > 1)How to set the Target name for ="TgtName" > > "" > >in property Using ANT API ("org.apache.tools.ant.*") http://api.dpml.net/ant/1.6.5/org/apache/tools/ant/Project.html#setProperty( java.lang.String,%20java.lang.String) > 2)How to execute the argumented target using ANT API's. Take a look at some examples of some systems that handle embedded ant. The DPML Depot system is the one I use (http://www.dpml.net/depot) but there are other more prominent/well-known examples on the net that you should probably dig into. Cheers, Steve. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Delima to use or not to use build.xml
> > How to write the equivalent of the "FTP_UPLOAD" Task by > using ANT API > ("org.apache.tools.ant.*") Spend some time reading everthing here at http://ant.apache.org/manual/index.html and in particular: http://ant.apache.org/ant_in_anger.html. > Mr McConell the site http://www.dpml.net/depot u reffred is > probably down,and timing out on my FireFox Browser. > It's working for me - perhaps try later. Cheers, Steve. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Delima to use or not to use build.xml
Have a look at http://marc.theaimsgroup.com/?l=ant-user&m=112962452208546&w=2 Jan >-Ursprüngliche Nachricht- >Von: Karthik [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 14. Februar 2006 12:01 >An: Ant Users List >Betreff: Delima to use or not to use build.xml > >Hi Form > > > How to write the equivalent of the "FTP_UPLOAD" Task by using ANT API >("org.apache.tools.ant.*") > > > > >remotedir="${ftpremotedir}" > userid="${ftpid}" > password="${ftppas}" > separator="\" > action="put"> > > > > > > > >Mr McConell the site http://www.dpml.net/depot u reffred is >probably down,and timing out on my FireFox Browser. > > >Please somebody help he. > > >with regards >Karthik > > >-Original Message- >From: Stephen McConnell [mailto:[EMAIL PROTECTED] >Sent: Tuesday, February 14, 2006 1:39 PM >To: 'Ant Users List' >Subject: RE: Delima to use or not to use build.xml > > > >> 1)How to set the Target name for ="TgtName" >> >> "" >> >>in property Using ANT API ("org.apache.tools.ant.*") > > >http://api.dpml.net/ant/1.6.5/org/apache/tools/ant/Project.html >#setProperty( >java.lang.String,%20java.lang.String) > > >> 2)How to execute the argumented target using ANT API's. > >Take a look at some examples of some systems that handle >embedded ant. The DPML Depot system is the one I use >(http://www.dpml.net/depot) but there are other more >prominent/well-known examples on the net that you should >probably dig into. > >Cheers, Steve. > > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] For >additional commands, e-mail: [EMAIL PROTECTED] > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] For >additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: A not good example in ant manual
Fixed the example. Thanks for the hint. Jan >-Ursprüngliche Nachricht- >Von: 肖华 [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 8. Februar 2006 02:53 >An: user@ant.apache.org >Betreff: A not good example in ant manual > > > In the "apache-ant-1.6.2\docs\manual\CoreTasks\ant.html" >file, in the example section, there is an example: > > target="compile"/> > > I think it's not a good one. Better like below: > > > because the file "subbuild.xml" is relative to the dir >"subproject", not current dir. > > >肖华 >[EMAIL PROTECTED] > 2006-02-08 > > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] For >additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Way to examine a property value?
Maybe someone can refresh my memory... I seem to remember a contrib to Ant that allows you to check the value of a property rather than just checking if a property has been defined or not... a *real* if statement! Can anyone point me in the right direction? Thanks! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Way to examine a property value?
uh, condition? -Matt --- "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote: > Maybe someone can refresh my memory... I seem to > remember a contrib to Ant > that allows you to check the value of a property > rather than just checking > if a property has been defined or not... a *real* if > statement! Can > anyone point me in the right direction? Thanks! > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > AIM: fzammetti > Yahoo: fzammetti > MSN: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Way to examine a property value?
Ok, slap me :) And I found ant-contrib, which is what I was thinking of. I think I'm all set. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Tue, February 14, 2006 10:39 am, Matt Benson said: > uh, condition? > > -Matt > > --- "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote: > >> Maybe someone can refresh my memory... I seem to >> remember a contrib to Ant >> that allows you to check the value of a property >> rather than just checking >> if a property has been defined or not... a *real* if >> statement! Can >> anyone point me in the right direction? Thanks! >> >> -- >> Frank W. Zammetti >> Founder and Chief Software Architect >> Omnytex Technologies >> http://www.omnytex.com >> AIM: fzammetti >> Yahoo: fzammetti >> MSN: [EMAIL PROTECTED] >> >> > - >> To unsubscribe, e-mail: >> [EMAIL PROTECTED] >> For additional commands, e-mail: >> [EMAIL PROTECTED] >> >> > > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Way to examine a property value?
Are you talking about antcontrib? -- Jeffrey E. (Jeff) Care ([EMAIL PROTECTED]) IBM WebSphere Application Server Development "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote on 02/14/2006 10:34:21 AM: > Maybe someone can refresh my memory... I seem to remember a contrib to Ant > that allows you to check the value of a property rather than just checking > if a property has been defined or not... a *real* if statement! Can > anyone point me in the right direction? Thanks! > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > AIM: fzammetti > Yahoo: fzammetti > MSN: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
Way to refresh properties?
Is there a way to refresh properties stored in an external properties file? I'm playing with Antform, and the situation I have is that when I set some properties with it, they don't get changed right away apparently... so, one way to solve it would be if I could tell Ant to reload the properties from the file that was written out by Antform. Is that possible? Thanks! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Way to refresh properties?
Jan >-Ursprüngliche Nachricht- >Von: Frank W. Zammetti [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 14. Februar 2006 17:54 >An: user@ant.apache.org >Betreff: Way to refresh properties? > >Is there a way to refresh properties stored in an external >properties file? > >I'm playing with Antform, and the situation I have is that >when I set some properties with it, they don't get changed >right away apparently... so, one way to solve it would be if I >could tell Ant to reload the properties from the file that was >written out by Antform. > >Is that possible? Thanks! > >-- >Frank W. Zammetti >Founder and Chief Software Architect >Omnytex Technologies >http://www.omnytex.com >AIM: fzammetti >Yahoo: fzammetti >MSN: [EMAIL PROTECTED] > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] For >additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Way to refresh properties?
That didn't work for me... maybe I should explain in more detail... I have an external properties file. This file has some properties that all either have the value true or false. In a target I use Antform to set these properties. Antform rewrites that properties file with the appropriate values. Now, within that target, the properties are set according to what I do on the form (and matches the properties file written at that point). However, in a later target, the value of a given property is the value that was in the file BEFORE Antform rewrote it, i.e., it is the value is started out as when the script ran. So, I need a way to tell Ant to reload that properties file and update the values accordingly. Alternatively, I need a way for the property values set in the one task to replicate to the rest of the script (some sort of scoping issue, but I'm not sure how to deal with it). Thanks! P.S., I just noticed , but that didn't seem to do it either. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Tue, February 14, 2006 11:57 am, [EMAIL PROTECTED] said: > > > Jan > >>-Ursprüngliche Nachricht- >>Von: Frank W. Zammetti [mailto:[EMAIL PROTECTED] >>Gesendet: Dienstag, 14. Februar 2006 17:54 >>An: user@ant.apache.org >>Betreff: Way to refresh properties? >> >>Is there a way to refresh properties stored in an external >>properties file? >> >>I'm playing with Antform, and the situation I have is that >>when I set some properties with it, they don't get changed >>right away apparently... so, one way to solve it would be if I >>could tell Ant to reload the properties from the file that was >>written out by Antform. >> >>Is that possible? Thanks! >> >>-- >>Frank W. Zammetti >>Founder and Chief Software Architect >>Omnytex Technologies >>http://www.omnytex.com >>AIM: fzammetti >>Yahoo: fzammetti >>MSN: [EMAIL PROTECTED] >> >>- >>To unsubscribe, e-mail: [EMAIL PROTECTED] For >>additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: Way to refresh properties?
>Now, within that target, the properties are set according to >what I do on the form (and matches the properties file written >at that point). >However, in a later target, the value of a given property is >the value that was in the file BEFORE Antform rewrote it, >i.e., it is the value is started out as when the script ran. Properties are immutable! >So, I need a way to tell Ant to reload that properties file >and update the values accordingly. Ant wont. You could reload them with another name using >Alternatively, I need a >way for the property values set in the one task to replicate >to the rest of the script (some sort of scoping issue, but I'm >not sure how to deal with it). properties are valid for the whole project. There is only a difference when using ,,. Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: AW: Way to refresh properties?
I don't know if it's the right way to do it, or if there is some reason not to do it this way, but I found a solution... I took the contents of the target that executed Antform and put it in a macrodef... doing that, the properties DO get changed as expected. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Tue, February 14, 2006 12:09 pm, [EMAIL PROTECTED] said: >>Now, within that target, the properties are set according to >>what I do on the form (and matches the properties file written >>at that point). >>However, in a later target, the value of a given property is >>the value that was in the file BEFORE Antform rewrote it, >>i.e., it is the value is started out as when the script ran. > > Properties are immutable! > > >>So, I need a way to tell Ant to reload that properties file >>and update the values accordingly. > > Ant wont. > You could reload them with another name using > > > >>Alternatively, I need a >>way for the property values set in the one task to replicate >>to the rest of the script (some sort of scoping issue, but I'm >>not sure how to deal with it). > > properties are valid for the whole project. > There is only a difference when using ,,. > > > Jan > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: AW: Way to refresh properties?
Hello Frank, --- "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote: > I don't know if it's the right way to do it, or if > there is some reason > not to do it this way, but I found a solution... I > took the contents of > the target that executed Antform and put it in a > macrodef... doing that, > the properties DO get changed as expected. Can you post your code? I got interesed because properties are immutable, no matter where you send them - in a ordinary target or in a macrodef. Regards Ivan __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: AW: Way to refresh properties?
The whole script is a little over 1,000 lines, so posting the whole thing wouldn't be too nice :) But, here is a trimmed-down version that should give you the info you want... It should be noted that my Ant scripts are note what one would call "typical"... I do things a little differently, but I prefer it done this way... anyway... Check off the tasks you wish to execute for this build, or close the window to abort the build. Note that ONE AND ONLY ONE of the options in the first section should MUST be selected. Also note that the application in exploded format is always set up for Tomcat only, and the EAR is always set up for Websphere only, and both are set up in whatever mode is indicated by the first four items. Security IS NOT enabled in Tomcat. And, for completeness, build_control.properties is nothing but: appmode_dev=true do_unit_tests=true do_static_analysis_checkstyle=true -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Tue, February 14, 2006 12:33 pm, Ivan \"Rambius\" Ivanov said: > Hello Frank, > > --- "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote: > >> I don't know if it's the right way to do it, or if >> there is some reason >> not to do it this way, but I found a solution... I >> took the contents of >> the target that executed Antform and put it in a >> macrodef... doing that, >> the properties DO get changed as expected. > Can you post your code? I got interesed because > properties are immutable, no matter where you send > them - in a ordinary target or in a macrodef. > > Regards > Ivan > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: AW: Way to refresh properties?
Hello, If you were using antcall to invoke a target containing antform, it is a normal behaviour. Targets invoked with antcall cannot set properties in the calling target: This will print: p = ${p} if you replace b by a macro or if you set depends="b" on target 'a', it will work. By the way, antform does not respect property immutability. It uses property values as defaults and allows the user to change those defaults. Regards, Patrick M. On 2/14/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > The whole script is a little over 1,000 lines, so posting the whole thing > wouldn't be too nice :) But, here is a trimmed-down version that should > give you the info you want... It should be noted that my Ant scripts are > note what one would call "typical"... I do things a little differently, > but I prefer it done this way... anyway... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > resource="dependencies.properties" /> > > > > version="4.0-beta5" /> > > > > > > > > > > > > >classpath="libutils/antform.jar" /> >image="../img/appTitle.gif" resetMessage="" > okMessage="Build"> > Check off the tasks you wish to execute for this build, or > close the window to abort the build. Note that ONE AND ONLY ONE of > the options in the first section should MUST be selected. Also note > that the application in exploded format is always set up for Tomcat > only, and the EAR is always set up for Websphere only, and both are > set up in whatever mode is indicated by the first four items. > Security IS NOT enabled in Tomcat. > >property="appmode_dev" /> >label="Target build for STEST environment > (appmode_stest)" > property="appmode_stest" /> >label="Target build for ATEST environment > (appmode_atest)" > property="appmode_atest" /> >label="Target build for PRODUCTION environment > (appmode_prod)" > property="appmode_prod" /> > > label="Run CheckStyle on all code > (do_static_analysis_checkstyle)" > property="do_static_analysis_checkstyle" /> >property="do_unit_tests" /> > > > > > > > > > > > debug="true" debuglevel="lines,vars,source" > destdir="../WEB-INF/classes" deprecation="on" > excludes="junittests/*.*" > classpath="../WEB-INF/lib/log4j.jar"> > > > > > > > > > > > > > destdir="temp" deprecation="on"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > failOnViolation="false"> > > > > toFile="static_analysis_checkstyle.xml" /> > > > > > > > > > > > > > And, for completeness, build_control.properties is nothing but: > > appmode_dev=true > do_unit_tests=true > do_static_analysis_checkstyle=true > > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > AIM: fzammetti > Yahoo: fzammetti > MSN: [EMAIL PROTECTED] > > On Tue, February 14, 2006 12:33 pm, Ivan \"Rambius\" Ivanov said: > > Hello Frank, > > > > --- "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote: > > > >> I don't know if it's the right way to do it, or if > >> there is some reason > >> not to do it this way, but I found a solution... I > >> took the contents of > >> the target that executed Antform and put it in a > >> macrodef... doing that, > >> the properties DO get changed as expected. > > Can you post your code? I got interesed because > > properties are immutable, no matter where you send > > them - in a ordinary target or in a macrodef. > > > > Regards > > Ivan > > > > __ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For
Re: AW: AW: Way to refresh properties?
Thanks for that info Patrick! I had kind of worked out the theory of it in my playing, but nice to have it confirmed. Since my build scripts tend to be a single target that antcalls all the others, this is valuable info (the fact that I've managed before without it notwithstanding!) I love Antform by the way, I now have a nice little front end to my build process, really cool! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Tue, February 14, 2006 1:46 pm, Patrick Martin said: > Hello, > > If you were using antcall to invoke a target containing antform, it is > a normal behaviour. Targets invoked with antcall cannot set properties > in the calling target: > > > > > > > > > > > This will print: > p = ${p} > > if you replace b by a macro or if you set depends="b" on target 'a', > it will work. > > By the way, antform does not respect property immutability. It uses > property values as defaults and allows the user to change those > defaults. > > Regards, > > Patrick M. > > On 2/14/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: >> The whole script is a little over 1,000 lines, so posting the whole >> thing >> wouldn't be too nice :) But, here is a trimmed-down version that should >> give you the info you want... It should be noted that my Ant scripts >> are >> note what one would call "typical"... I do things a little differently, >> but I prefer it done this way... anyway... >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >resource="dependencies.properties" /> >> >> >> >> > artifact="checkstyle-optional" >> version="4.0-beta5" /> >> >> >> >> >> >> >> >> >> >> >> >> >> > classpath="libutils/antform.jar" /> >> > image="../img/appTitle.gif" resetMessage="" >> okMessage="Build"> >> Check off the tasks you wish to execute for this build, or >> close the window to abort the build. Note that ONE AND ONLY ONE of >> the options in the first section should MUST be selected. Also note >> that the application in exploded format is always set up for Tomcat >> only, and the EAR is always set up for Websphere only, and both are >> set up in whatever mode is indicated by the first four items. >> Security IS NOT enabled in Tomcat. >> >> > property="appmode_dev" /> >> > label="Target build for STEST environment >> (appmode_stest)" >> property="appmode_stest" /> >> > label="Target build for ATEST environment >> (appmode_atest)" >> property="appmode_atest" /> >> > label="Target build for PRODUCTION environment >> (appmode_prod)" >> property="appmode_prod" /> >> >> > label="Run CheckStyle on all code >> (do_static_analysis_checkstyle)" >> property="do_static_analysis_checkstyle" /> >> > property="do_unit_tests" /> >> >> >> >> >> >> >> >> >> >> >> > debug="true" debuglevel="lines,vars,source" >> destdir="../WEB-INF/classes" deprecation="on" >> excludes="junittests/*.*" >> classpath="../WEB-INF/lib/log4j.jar"> >> >> >> >> >> >> >> >> >> >> >> >> >> > destdir="temp" deprecation="on"> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > failOnViolation="false"> >> >> >> >> >toFile="static_analysis_checkstyle.xml" /> >> >> >> >> >> >> >> >> >> >> >> >> >> And, for completeness, build_control.properties is nothing but: >> >> appmode_dev=true >> do_unit_tests=true >> do_static_analysis_checkstyle=true >> >> >> -- >> Frank W. Zammetti >> Founder and Chief Software Architect >> Omnytex Technologies >> http://www.omnytex.com >> AIM: fzammetti >> Yahoo: fzammetti >> MSN: [EMAIL PROTECTED] >> >> On Tue, February 14, 2006 12:33 pm, Ivan \"Rambius\" Ivanov sa
Re: AW: AW: Way to refresh properties?
I am glad to read that! ;-) On 2/14/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Thanks for that info Patrick! I had kind of worked out the theory of it > in my playing, but nice to have it confirmed. Since my build scripts tend > to be a single target that antcalls all the others, this is valuable info > (the fact that I've managed before without it notwithstanding!) I love > Antform by the way, I now have a nice little front end to my build > process, really cool! > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > AIM: fzammetti > Yahoo: fzammetti > MSN: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to update build number without screwing up build.properties format
I have a build.properties file that contains my build.number property. Part of my build is updating that number by one on each build using: type="int" /> It does what it needs to do, but it also reorders all the other properties in the file. I have a lot of properties in the file and group them with carriage returns to make it easier to see what does what. Any suggestions for how to update the number without scrambling the order of properties. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to update build number without screwing up build.properties format
How about 1) Read the properties in (via ) 2) Generate a property whose value equals the line of text in question (i.e. the value might be 'build.number=100') 3) Using the element (from ant-contrib) to generate the next number into a property 4) Assign a property whose value equals the new line you want (i.e. the value might be 'build.number=101') 5) Use the task to replace the string in the file that matches the value from step (2) with the string from step (4) Alternatively use a front-end build number controller (like CruiseControl) to provide you a forward marching build number Later, Ninju - Original Message From: Matthew Hughes <[EMAIL PROTECTED]> To: user@ant.apache.org Sent: Tuesday, February 14, 2006 1:07:23 PM Subject: How to update build number without screwing up build.properties format I have a build.properties file that contains my build.number property. Part of my build is updating that number by one on each build using: It does what it needs to do, but it also reorders all the other properties in the file. I have a lot of properties in the file and group them with carriage returns to make it easier to see what does what. Any suggestions for how to update the number without scrambling the order of properties. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem with compiler settings
i'm looking for some help with the compiler options. i have a project that requires me to compile code written against java 1.2. my system is running java 5.0. i'm using ant 1.6.5. at the top of my build file i have set build.compiler = javac1.2 per the ant manual. i figured that would do the trick. no luck. i've pasted the error message from my compile-profile target. ant is giving an error message that my version of java doesn't support a "classic" compiler. i'll also paste my javac task below this error message. thanks... erik compile-profile: [javac] Compiling 44 source files to C:\dev\work\D6893\D6893\FJPKVPSourceCode_fromCVS\fj_dev61\build\classes [javac] This version of java does not support the classic compiler; upgradin g to modern [javac] C:\dev\work\D6893\D6893\FJPKVPSourceCode_fromCVS\fj_dev61\src\ProfileArch\com\sprint\fj\arch\utility\SSLSocketThread.java:14: reference to TrustManager is ambiguous, both class com.sun.net.ssl.TrustManager in com.sun.net.ssl and class javax.net.ssl.TrustManager in javax.net.ssl match [javac] private TrustManager tm = null; [javac] ^ -- Erik Weibust developer, blogger - http://erik.weibust.net co-leader Spring Dallas User Group - http://SpringDallasUG.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem with compiler settings
Try setting just the javac process... OR -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik Weibust Sent: Tuesday, February 14, 2006 12:55 PM To: user@ant.apache.org Subject: problem with compiler settings i'm looking for some help with the compiler options. i have a project that requires me to compile code written against java 1.2. my system is running java 5.0. i'm using ant 1.6.5. at the top of my build file i have set build.compiler = javac1.2 per the ant manual. i figured that would do the trick. no luck. i've pasted the error message from my compile-profile target. ant is giving an error message that my version of java doesn't support a "classic" compiler. i'll also paste my javac task below this error message. thanks... erik compile-profile: [javac] Compiling 44 source files to C:\dev\work\D6893\D6893\FJPKVPSourceCode_fromCVS\fj_dev61\build\classes [javac] This version of java does not support the classic compiler; upgradin g to modern [javac] C:\dev\work\D6893\D6893\FJPKVPSourceCode_fromCVS\fj_dev61\src\ProfileArch\co m\sprint\fj\arch\utility\SSLSocketThread.java:14: reference to TrustManager is ambiguous, both class com.sun.net.ssl.TrustManager in com.sun.net.ssl and class javax.net.ssl.TrustManager in javax.net.ssl match [javac] private TrustManager tm = null; [javac] ^ -- Erik Weibust developer, blogger - http://erik.weibust.net co-leader Spring Dallas User Group - http://SpringDallasUG.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] NOTICE: This communication contains information which is confidential to Realm Business Solutions, Inc. or its subsidiary ("Realm"). If you are not the intended recipient of this communication, please delete and destroy all copies. If you are the intended recipient of this communication, you should not copy, disclose or distribute this communication without Realm's authority. Any views expressed in this communication are those of the individual sender, except where the sender specifically states them to be Realm's views. Except as required by law, Realm does not represent, warrant or guarantee that the integrity of this communication has been maintained nor that the communication is free of errors, harmful code, interception or interference.
Re: problem with compiler settings
Casey Daniell wrote: Try setting just the javac process... OR Hello, I'm afraid the first version won't work. Use the second one, fork must be true, executable set to the javac.exe from your jdk1.2 installation (for example: c:\java\jdk1.2\bin\javac.exe). I think that compiler attribute is ignored when executable is set. You may try to set target attribute, but in my oppinion it is not necessary. Best regards Ondrej Svetlik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem with compiler settings
I don't think the compiler version has anything to do with the error. It looks like you have presented 2 packages (com.sun.net.ssl and class javax.net.ssl) to the compiler each of which contains the TrustManager class. Since the reference to the TrustManager class in the SSLSocketThread class is not fully qualified the compiler is having trouble resolving which TrustManager class to use. I would guess that you either need to remove one of the packages or fully qualify the reference to the TrustManager class. It might also help to see which compiler is being used to run the Ant file with -verbose. HTH Bill -Original Message- From: Casey Daniell [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 1:52 PM To: 'Ant Users List' Subject: RE: problem with compiler settings Try setting just the javac process... OR -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik Weibust Sent: Tuesday, February 14, 2006 12:55 PM To: user@ant.apache.org Subject: problem with compiler settings i'm looking for some help with the compiler options. i have a project that requires me to compile code written against java 1.2. my system is running java 5.0. i'm using ant 1.6.5. at the top of my build file i have set build.compiler = javac1.2 per the ant manual. i figured that would do the trick. no luck. i've pasted the error message from my compile-profile target. ant is giving an error message that my version of java doesn't support a "classic" compiler. i'll also paste my javac task below this error message. thanks... erik compile-profile: [javac] Compiling 44 source files to C:\dev\work\D6893\D6893\FJPKVPSourceCode_fromCVS\fj_dev61\build\classes [javac] This version of java does not support the classic compiler; upgradin g to modern [javac] C:\dev\work\D6893\D6893\FJPKVPSourceCode_fromCVS\fj_dev61\src\ProfileArch\co m\sprint\fj\arch\utility\SSLSocketThread.java:14: reference to TrustManager is ambiguous, both class com.sun.net.ssl.TrustManager in com.sun.net.ssl and class javax.net.ssl.TrustManager in javax.net.ssl match [javac] private TrustManager tm = null; [javac] ^ -- Erik Weibust developer, blogger - http://erik.weibust.net co-leader Spring Dallas User Group - http://SpringDallasUG.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] NOTICE: This communication contains information which is confidential to Realm Business Solutions, Inc. or its subsidiary ("Realm"). If you are not the intended recipient of this communication, please delete and destroy all copies. If you are the intended recipient of this communication, you should not copy, disclose or distribute this communication without Realm's authority. Any views expressed in this communication are those of the individual sender, except where the sender specifically states them to be Realm's views. Except as required by law, Realm does not represent, warrant or guarantee that the integrity of this communication has been maintained nor that the communication is free of errors, harmful code, interception or interference. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with compiler settings
bill/wilandra wrote: I don't think the compiler version has anything to do with the error. It looks like you have presented 2 packages (com.sun.net.ssl and class javax.net.ssl) to the compiler each of which contains the TrustManager class. Since the reference to the TrustManager class in the SSLSocketThread class is not fully qualified the compiler is having trouble resolving which TrustManager class to use. I would guess that you either need to remove one of the packages or fully qualify the reference to the TrustManager class. It might also help to see which compiler is being used to run the Ant file with -verbose. HTH Bill You are right, but the question was how to compile with java 1.2, not how to fix the broken code :-). And javac really complains about the choice of compiler: [javac] This version of java does not support the classic compiler; upgradin g to modern I hope it's really what Erik wanted to know. Yes, you are right, that by default, ant uses the same java it is running in for javac/java tasks. That's why the only way to change it is by setting executable to the one desired and fork to true. Best regards Ondrej Svetlik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with compiler settings
Thanks for the help. The only thing I had to change was using classic instead of 1.2 as the value to my compiler attribute. I am bothered that I couldn't get the correct behavior by just setting: erik On 2/14/06, Ondrej Svetlik <[EMAIL PROTECTED]> wrote: > Casey Daniell wrote: > > Try setting just the javac process... > > > >> destdir="${build}" > > fork="true" > > source="1.2" > > target="1.2" > > /> > > > > OR > > > >> destdir="${build}" > > fork="yes" > > executable="/opt/java/jdk1.2/bin/javac" > > compiler="javac1.2" > > /> > > > > Hello, I'm afraid the first version won't work. Use the second one, fork > must be true, executable set to the javac.exe from your jdk1.2 > installation (for example: c:\java\jdk1.2\bin\javac.exe). I think that > compiler attribute is ignored when executable is set. You may try to set > target attribute, but in my oppinion it is not necessary. > > Best regards > > Ondrej Svetlik > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Erik Weibust developer, blogger - http://erik.weibust.net co-leader Spring Dallas User Group - http://SpringDallasUG.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Broken Junit targets
Hi, I'm still getting the same "Could not create task or type of type: junit" error. I created a separate ant-junit pathelement in the properties.xml file: I then reference both in the build.xml file: Same error. I changed the to value="false" Same error. So I tried to implement the setup-path and test targets as Steve suggested: Same error. I still don't understand how, without changing any environment path settings or anything elese, copying the junit.jar to a side projects lib directory has broken the test target for all other projects on my system. There must be some kind of classloader memory that survives reboots that I offended with the seemingly innocuos copy file which I was then unable to erase by deleting the offending jar. From: "Stephen McConnell" <[EMAIL PROTECTED]> Reply-To: "Ant Users List" To: "'Ant Users List'" Subject: RE: Broken Junit targets Date: Tue, 14 Feb 2006 15:30:35 +1030 > -Original Message- > From: Taemin Cim [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 14 February 2006 1:46 PM > To: user@ant.apache.org > Subject: RE: Broken Junit targets > > Hi again, > > >The ant-junit.jar is dependent on the JUnit jar file. > >You can add JUnit to ${ant.home}/lib, or your ${user.home}/.ant/lib > >directory. > > > >/Steve. > > > > I have the junit.jar on the test.classpath in the build file. > How else should I associate the junit,jar witht eh > ant-junit.jar? Where should I "add JUnit to ${ant.home}/lib, > or your ${user.home}/.ant/lib" If the junit,jar in on the > test classpath, and ant knows it has ant-junit.jar, what more > should I do (and how did I break this connection after a year or > testing?) There are lots of ways you can play around with classpath composition in ant. The important thing to note is that ant-junit requires junit jar to be in the same or higher classloader. If the junit jar is present in either ${ant.home}/lib or ${user.home}/.ant/lib then it should be included in the same classloader that contains ant-junit. This is visible in that when you compile classes referencing junit classes the compilation succeeds. However, your forking during the execution of the testcase and (I'm guessing here) you probably need to provide the complete classloader definition. > > > Here is an example of the setup of a two path objects that are subsequently used in a forked junit test. Perhaps it will help in resolving your issue. Cheers, Steve. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Property vs. user property - what's the difference?
Can someone explain the difference between a property and a user property (or the difference between Project.setProperty and Project.setUserProperty)? Thanks! -- Ian Pilcher[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Broken Junit targets
> Same error. Have you invoked ant with the -v option? This will give you sufficient information to establish where ant is loading things from (and info about any references that are dropped because they don't exist. /Steve. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Substituting the value according to the property name
We are replacing the occurrence of a string with another value by reading a predefined property file as given below. The above file i.e. ems.iap_xml is getting replaced perfectly with the defined values. For example the token $PRODUCT_VERSIONMAJOR$ has been replaced with '1' after running the above script.(as defined in build.properties file) However, if the user made some changes for the file emsMaster.iap_xml, the requirement is to bring back the old strings(values) for those property names. So the script which has been used for replacing back is as below. However, with this script iam facing the problem that what ever the property values are '1' in the emsMaster.iap_xml it is getting replaced with values $PRODUCT_VERSIONMAJOR$ For example the emsMaster.iap_xml file contains the following entries : 1 1 In the above script, the requirement is to replace the value of 1 for the ProductVersionMajor property to $PRODUCT_VERSIONMAJOR$ but not to the imageOption property. How can we achieve this one? Thanks, Srinivas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deploying an application in WebLogic
Hello GM all of you... Can anyone guide me on how to deploy a simple war file in weblogic appserver Thanks in advance. Regards Shweta.
Re: Property vs. user property - what's the difference?
On Tue, 14 Feb 2006, Ian Pilcher <[EMAIL PROTECTED]> wrote: > Can someone explain the difference between a property and a user > property (or the difference between Project.setProperty and > Project.setUserProperty)? user properties are the properties defined on the command line or as nested elements in tasks. They are even more immutable than plain properties and are passed down to child builds accross even if inheritall is false. Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deploying application using ANT and WebLogic
Hi: I am trying to use ant to deploy a war file on weblogic 8.1. Can you please help me with some examples. Thanks and Regards, Shweta
Re: Adding sh script in ant
[EMAIL PROTECTED] wrote: Hi Steve, Can you explain giving the example? 1. pick a an ant startup script of preference 2. rename it. 3. insert the environment setting commands of choice into that renamed script 4. use it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying application using ANT and WebLogic
Shweta Bodade wrote: Hi: I am trying to use ant to deploy a war file on weblogic 8.1. Can you please help me with some examples. Thanks and Regards, Shweta first, you should allow more than an hour before resending the message. There are not hundreds of people idly waiting for emails and going to respond instantly. I find works with most app servers, if not: -weblogic may provide their own tasks -cargo, at http://cargo.codehaus.org is a library to deploy to app servers, it can even start and stop the server. -steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Deploying application using ANT and WebLogic
Hi, Here is example for exploded directory All the best -Dinesh -Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 15, 2006 1:22 PM To: Ant Users List Subject: Re: Deploying application using ANT and WebLogic Shweta Bodade wrote: > > > Hi: > > > > I am trying to use ant to deploy a war file on weblogic 8.1. > > Can you please help me with some examples. > > > > Thanks and Regards, > > Shweta > > > > first, you should allow more than an hour before resending the message. There are not hundreds of people idly waiting for emails and going to respond instantly. I find works with most app servers, if not: -weblogic may provide their own tasks -cargo, at http://cargo.codehaus.org is a library to deploy to app servers, it can even start and stop the server. -steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]