Can you Please help me
Dear Loughran, I am new to ant Scripting. My requirement is like this. We are using Weblogic. I receive an .EAR file and before deployment my BUILD should do the following. a. My Script should locate the weblogic-ejb-jar.xml inside the .EAR and Element should be modified per EJB basis. What do you suggest? Regards, Srini. -Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 2:31 PM To: Ant Developers List Subject: Re: Updates to the Maven Artifact Ant tasks Brett Porter wrote: > On 6/8/05, Steve Loughran <[EMAIL PROTECTED]> wrote: >>Here in ant-land, we've done two things to make the stuff work better >> >>1. > > > Are these the same points you added below? no, I forgot to type some stuff 1. Resource collections are a new way of representing stuff; filesets are inherently resource collections. I'm told this will make it easier to manipulate filesets. 2. what was #2? I forget. > > >>1. build file tests; check handling of missing required items, etc, etc. >>ant-testutils is the jar for this. > > > Ok, that will be worth a look. I'm pretty flat out for the next ocuple > of weeks, then JavaOne, then holidays - so I'll revisit this next > month :) > > Is this still going to give enough time to prepare for Ant 1.7? Maybe. I might have a go at starting the test suite, its not too hard in junit, and now AntUnit promises more simplicity. > >>5. something to map from (artifact,groupid,version) to the path to a >>jar, to a pom, or the base dir. Here is my macro to get the dest >>directory, used when copying in local stuff. > > > I thought that was why dependencies had a fileset ID, so you didn't > need to worry about constructing paths, or knowing where the local > repository is if using external config? its primarily for local deployment-by-copying. Now, maven itself has a built in publish-to-a-repository goal doesnt it? That is what i really need, I suspect. Push out an artifact to a location, generate a POM file on demand, plus the checksums. > Anyway, happy for this to go into JIRA. It can use the code already in > Maven to set the property and it would be flexible across layouts. > > The proxy idea in a later email is also good, JIRA'd. ...just another example of how J2SE is laptop unfriendly. I think it comes from sun's no-laptop-except-powerbooks-you-buy-yourself policy. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * Disclaimer: The contents of this E-mail (including the contents of the enclosure(s) or attachment(s) if any) are privileged and confidential material of MBT and should not be disclosed to, used by or copied in any manner by anyone other than the intended addressee(s). In case you are not the desired addressee, you should delete this message and/or re-direct it to the sender. The views expressed in this E-mail message (including the enclosure(s) or attachment(s) if any) are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of MBT. This e-mail message including attachment/(s), if any, is believed to be free of any virus. However, it is the responsibility of the recipient to ensure that it is virus free and MBT is not responsible for any loss or damage arising in any way from its use * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can you pl help me
Dear Daniels, I am new to ant Scripting. My requirement is like this. We are using Weblogic. I receive an .EAR file and before deployment my BUILD should do the following. a. My Script should locate the weblogic-ejb-jar.xml inside the .EAR and Element should be modified per EJB basis. What do you suggest? Regards, Srini. -Original Message- From: Daniels, Doug [mailto:[EMAIL PROTECTED] Sent: Saturday, June 04, 2005 12:55 AM To: Ant Developers List Subject: RE: Google Summer of Code, Apache ANT project ideas? Yeah I was way off on Velocity I thought it was part of XDocs but really its that servlet engine. What's wrong with XDocs it seems like a good way to parse through the Ant Tasks meta-data javadoc comments and extract the information we need for documentation. What other types of capability were you looking for? The project deliverable would most likely be an Ant Task that could perform this document auto-generation right? Where can I find the previous XDoc stuff that was developed? Doug Daniels -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Friday, June 03, 2005 2:09 PM To: Ant Developers List Subject: Re: Google Summer of Code, Apache ANT project ideas? Doug - I've added it as project ID ant-xdocs to that wiki page. As for technologies - I'm not sure if Velocity and XDoclet are the best technologies to use right now. Let's solicit input from others here on their architecture ideas. Erik On Jun 3, 2005, at 1:46 PM, Daniels, Doug wrote: > Erik, > > Sounds great, maybe you can submit it on the Apache SoC proposal > page(http://wiki.apache.org/general/SummerOfCode2005), and I'll > submit my application to google with Apache as my selected > organization. > > I guess I'd propose it something like: > The Apache Ant project needs a way to auto-generate task/type > documentation. The proposed solution would use Velocity and xdocs > to create a standard way to document the old and new Ant tasks to > keep the documentation up to date and easily updatable in the > future automatically. > > By the way I have your book and it was a great help with what I've > been working on at my job. I was thinking of writing up an Ant > tutorial describing an interesting build system we came up with > utilizing Ant's import task to create a common build hierarchy > infrastructure, that can be extended to new products very easily. > It really helps when we have to add a new product in and all we do > is define some properties and throw a build.xml stub in and it is > then included into our software package. > > Doug Daniels > > - > 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] * Disclaimer: The contents of this E-mail (including the contents of the enclosure(s) or attachment(s) if any) are privileged and confidential material of MBT and should not be disclosed to, used by or copied in any manner by anyone other than the intended addressee(s). In case you are not the desired addressee, you should delete this message and/or re-direct it to the sender. The views expressed in this E-mail message (including the enclosure(s) or attachment(s) if any) are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of MBT. This e-mail message including attachment/(s), if any, is believed to be free of any virus. However, it is the responsibility of the recipient to ensure that it is virus free and MBT is not responsible for any loss or damage arising in any way from its use * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can u pl help me
Dear Don, I am new to ant Scripting. My requirement is like this. We are using Weblogic. I receive an .EAR file and before deployment my BUILD should do the following. a. My Script should locate the weblogic-ejb-jar.xml inside the .EAR and Element should be modified per EJB basis. What do you suggest? Regards, Srini. -Original Message- From: Don Stewart [mailto:[EMAIL PROTECTED] Sent: Monday, June 06, 2005 6:28 PM To: Ant Developers List; [EMAIL PROTECTED] Subject: RE: Google Summer of Code, Apache ANT project ideas? As an alternative to directly using the Java 1.5 annotations you could user the JSR-175 backport of the annotations spec. Also on codehaus as http://backport175.codehaus.org/ Cheers Don -Original Message- From: James Fuller [mailto:[EMAIL PROTECTED] Sent: 06 June 2005 11:20 To: Ant Developers List Subject: Re: Google Summer of Code, Apache ANT project ideas? >>> >> +1 to XDoclet; the only alternative would be Java1.5 annotations and >> we do not want to go there. > I would reiterate the same thing. > What about using qdox[1] directly rather than going through xdoclet ? > > [1] - http://qdox.codehaus.org/ interesting, never have used itI would think that ease of use and performance would have to be a magnitude better then xdoc to validate its usage. cheers, Jim Fuller - 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] * Disclaimer: The contents of this E-mail (including the contents of the enclosure(s) or attachment(s) if any) are privileged and confidential material of MBT and should not be disclosed to, used by or copied in any manner by anyone other than the intended addressee(s). In case you are not the desired addressee, you should delete this message and/or re-direct it to the sender. The views expressed in this E-mail message (including the enclosure(s) or attachment(s) if any) are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of MBT. This e-mail message including attachment/(s), if any, is believed to be free of any virus. However, it is the responsibility of the recipient to ensure that it is virus free and MBT is not responsible for any loss or damage arising in any way from its use * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can you help me!!!
Dear Smith, I am new to ant Scripting. My requirement is like this. We are using Weblogic. I receive an .EAR file and before deployment my BUILD should do the following. a. My Script should locate the weblogic-ejb-jar.xml inside the .EAR and Element should be modified per EJB basis. What do you suggest? Regards, Srini. -Original Message- From: Phil Weighill-Smith [mailto:[EMAIL PROTECTED] Sent: Sunday, May 29, 2005 8:42 PM To: Ant Developers List Subject: RE: A possible solution for conditional execution of tasks? There is the option to use the conditional task ("if") from ant-contrib... this allows the nesting of a "sequential" task which itself can contain any tasks you want. -Original Message- From: Sandip Chitale [mailto:[EMAIL PROTECTED] Sent: Sun 29/05/2005 16:06 To: Ant Developers List Cc: Subject: Re: A possible solution for conditional execution of tasks? Phil Weighill-Smith wrote: >My opinion regarding the disadvantages of this approach: > >* Antcall has to create a whole new Project in memory in order to work and is therefore an inefficient task > > Yes. If the project is large this could be a large overhead. It seems the semantics of antcall is not like a sub target but more like a target in a sub project (even though the project happens to be the same project). Is there a more lightweight solution planned in this area? >* If something invoked via Antcall depends on a target that is also depended on by something depending on the target invoking Antcall then this dependency target will be executed more than once because dependencies are not handled across Antcall invocations > > Yes. >* The dependency tree is "interrupted" and graphing tools that can show ant build script structures will not (generally) work correctly and show the whole dependency tree > > I did not think about the graphing tools, but that is a good point also. Given the fact that you did not list any advantages it seems this is not a good idea. >It might be better to add "if" and "unless" to the standard ant Task to allow for conditional execution, or even add a nested "condition" to the standard ant Task to allow for conditional execution. To provide BC with the standard "execute" method, the condition/if/unless processing would need to happen outside this method. > > This seems like this is the real answer. However I read somewhere that it is an architectural decision to not support "if" and "unless" etc. at the task level. Can anyone point me to a discussion/document on that? What about using scripting? Is that not recommended either? Google search revealed that many people are looking for solutions for similar problems. Regards, Sandip > >Phil :n. > > -Original Message- > From: Sandip Chitale [mailto:[EMAIL PROTECTED] > Sent: Sat 28/05/2005 18:56 > To: dev@ant.apache.org > Cc: > Subject: A possible solution for conditional execution of tasks? > > > > To conditionally execute a step in Ant one has to resort to setting up a > target structure like this: > > : > > > > : > > > > > > : > : > > > > > > : > : > > : > > This is because of several reasons: > > * The ant tasks do not have something like *if* attribute. > * One cannot get away with only two targets instead of three because > the dependencies are executed before the dependent. Using the > above example it is not possible to do what target predicate does > in the main target and avoid using the predicate target. > * Ensure order of execution > > However, I tried a solution making use of antcall task and it worked. It > works as follows: > > : > > > : > : > > > > : > > > : > > >
Can you pl help me
Dear All, I am new to ant Scripting. My requirement is like this. We are using Weblogic. I receive an .EAR file and before deployment my BUILD should do the following. a. My Script should locate the weblogic-ejb-jar.xml inside the .EAR and Element should be modified per EJB basis. What do you suggest? Regards, Srini. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 03, 2005 12:29 AM To: Ant Developers List Subject: task submition question Hi everyone, I am pretty new at ANT, but I really like it. I have been developing this Task that I am thinking of submitting to the ANT community. It would be an optional task for SCM. I have been following the guidelines and I have looked at the submission check list. The task is almost done - I am just finishing the JUnit test cases... I have a question though...my Task uses an external library. That is, it needs a librabry for a Java API from the SCM tool that I am developing the task for. The problem is, that Java API is not open source, but it is available to customers who have purchased the SCM tool. So my task compiles and I can use it fine because I have placed the .jar file in ANT's lib directory. If i submit this task the build will break simply because the needed jar file will be missing. Should I be emaling that jar file too? or how does it work? I am actually working for the company that distributes this SCM tool. I was assigned to integrate it with the ANT community. So if there anything we need to do, I would need to know. I wasn't really sure where to send my questions...but I have been reading this mailing list for a bit and I figured there are a lot of smart people here who can help me. Thanks for the help! I really appreciate it! Arturo Guedez This mail sent through www.mywaterloo.ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * Disclaimer: The contents of this E-mail (including the contents of the enclosure(s) or attachment(s) if any) are privileged and confidential material of MBT and should not be disclosed to, used by or copied in any manner by anyone other than the intended addressee(s). In case you are not the desired addressee, you should delete this message and/or re-direct it to the sender. The views expressed in this E-mail message (including the enclosure(s) or attachment(s) if any) are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of MBT. This e-mail message including attachment/(s), if any, is believed to be free of any virus. However, it is the responsibility of the recipient to ensure that it is virus free and MBT is not responsible for any loss or damage arising in any way from its use * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can you help me!!!
Dear Jan, Sorry, I am new to the system. Regards, Srini. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 5:00 PM To: dev@ant.apache.org Subject: AW: Can you help me!!! Once asked is enough - you´ll writing to a complete mailinglist ... Jan >-Ursprüngliche Nachricht- >Von: Srinivas [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 9. Juni 2005 12:23 >An: Ant Developers List >Betreff: Can you help me!!! > > >Dear Smith, > > I am new to ant Scripting. My requirement is like >this. We are using Weblogic. > > I receive an .EAR file and before deployment my BUILD >should do the following. > > > a. My Script should locate the >weblogic-ejb-jar.xml inside the .EAR and > > Element should be modified per EJB basis. > > What do you suggest? > > >Regards, >Srini. > >-Original Message- >From: Phil Weighill-Smith [mailto:[EMAIL PROTECTED] >Sent: Sunday, May 29, 2005 8:42 PM >To: Ant Developers List >Subject: RE: A possible solution for conditional execution of tasks? > > >There is the option to use the conditional task ("if") from >ant-contrib... this allows the nesting of a "sequential" task >which itself can contain any tasks you want. > > -Original Message- > > From: Sandip Chitale [mailto:[EMAIL PROTECTED] > > Sent: Sun 29/05/2005 16:06 > > To: Ant Developers List > > Cc: > > Subject: Re: A possible solution for conditional >execution of tasks? > > > > > > Phil Weighill-Smith wrote: > > > >My opinion regarding the disadvantages of this approach: > > > >* Antcall has to create a whole new Project in >memory in order to work and is therefore an inefficient task > > > > > > Yes. If the project is large this could be a large >overhead. It seems > the semantics of antcall is not like a sub target but >more like a target > in a sub project (even though the project happens to be the same > project). Is there a more lightweight solution planned >in this area? > > > >* If something invoked via Antcall depends on a >target that is also depended on by something depending on the >target invoking Antcall then this dependency target will be >executed more than once because dependencies are not handled >across Antcall invocations > > > > > > Yes. > > > >* The dependency tree is "interrupted" and >graphing tools that can show ant build script structures will >not (generally) work correctly and show the whole dependency tree > > > > > > I did not think about the graphing tools, but that is a >good point also. > > > Given the fact that you did not list any advantages it >seems this is not > a good idea. > > > >It might be better to add "if" and "unless" to the >standard ant Task to allow for conditional execution, or even >add a nested "condition" to the standard ant Task to allow for >conditional execution. To provide BC with the standard >"execute" method, the condition/if/unless processing would >need to happen outside this method. > > > > > > This seems like this is the real answer. However I read >somewhere that > it is an architectural decision to not support "if" and >"unless" etc. at > the task level. Can anyone point me to a >discussion/document on that? > > > What about using scripting? Is that not recommended either? > > > Google search revealed that many people are looking for >solutions for > similar problems. > > > Regards, > Sandip > > > > > >Phil :n. > > > > -Original Message- > > From: Sandip Chitale [mailto:[EMAIL PROTECTED] > > Sent: Sat 28/05/2005 18:56 > > To: dev@ant.apache.org > > Cc: > > Subject: A possible solution for conditional >execution of tasks? > > > > > > > > > > To conditionally execute a step in Ant one has >to resort to setting up a > > target structure like this: > > > > > : > > > > > > > > : > > > > > >
RE: Can you help me!!!
No need of writing our own task??? As I said I am totally new, I started working with ant now. What I understood is of ant do the necessary processing and modifications. But if the value of this particular tag varies from EJB to EJB then srini. -Original Message- From: Phil Weighill-Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 5:07 PM To: Ant Developers List Subject: Re: Can you help me!!! Try using to extract the XML file from the EAR then use to process and modify the XML file accordingly. Rename the output file from the XSLT back to the original name (using ) then use to put the file back in the EAR. Phil On Thu, 2005-06-09 at 15:52 +0530, Srinivas wrote: > Dear Smith, > > I am new to ant Scripting. My requirement is like this. We are using Weblogic. > > I receive an .EAR file and before deployment my BUILD should do the following. > > a. My Script should locate the weblogic-ejb-jar.xml inside the > .EAR and > Element should be modified per EJB basis. > > What do you suggest? > > Regards, > Srini. > > -Original Message- > From: Phil Weighill-Smith [mailto:[EMAIL PROTECTED] > Sent: Sunday, May 29, 2005 8:42 PM > To: Ant Developers List > Subject: RE: A possible solution for conditional execution of tasks? > > > There is the option to use the conditional task ("if") from ant-contrib... this allows the nesting of a "sequential" task which itself can contain any tasks you want. > > -Original Message- > From: Sandip Chitale [mailto:[EMAIL PROTECTED] > Sent: Sun 29/05/2005 16:06 > To: Ant Developers List > Cc: > Subject: Re: A possible solution for conditional execution of tasks? > > > > Phil Weighill-Smith wrote: > > >My opinion regarding the disadvantages of this approach: > > > >* Antcall has to create a whole new Project in memory in order to work and is therefore an inefficient task > > > > > Yes. If the project is large this could be a large overhead. It seems > the semantics of antcall is not like a sub target but more like a target > in a sub project (even though the project happens to be the same > project). Is there a more lightweight solution planned in this area? > > >* If something invoked via Antcall depends on a target that is > also depended on by something depending on the target invoking Antcall then this dependency target will be executed more than once because dependencies are not handled across Antcall invocations > > > > > Yes. > > >* The dependency tree is "interrupted" and graphing tools that can show ant build script structures will not (generally) work correctly and show the whole dependency tree > > > > > I did not think about the graphing tools, but that is a good point also. > > Given the fact that you did not list any advantages it seems this is not > a good idea. > > >It might be better to add "if" and "unless" to the standard ant Task to allow for conditional execution, or even add a nested "condition" to the standard ant Task to allow for conditional execution. To provide BC with the standard "execute" method, the condition/if/unless processing would need to happen outside this method. > > > > > This seems like this is the real answer. However I read somewhere that > it is an architectural decision to not support "if" and "unless" etc. at > the task level. Can anyone point me to a discussion/document on that? > > What about using scripting? Is that not recommended either? > > Google search revealed that many people are looking for solutions for > similar problems. > > Regards, > Sandip > > > > >Phil :n. > > > > -Original Message- > > From: Sandip Chitale [mailto:[EMAIL PROTECTED] > > Sent: Sat 28/05/2005 18:56 > > To: dev@ant.apache.org > > Cc: > > Subject: A possible solution for conditional execution of tasks? > > > > > > > > To conditionally execute a step in Ant one has to resort to setting up a > > target structure like this: > > > > : > > > > > > > > : > > > > > > > >
Re: GUMP failure caused by ANT (Re: [GUMP] Build Failure - Axis)
Stefan, Can you please explain why on WIN2K, both 1.5.X and CVS HEAD both work fine? (and we see the failure only on nagoya?). If this was the problem, then we'd see failures on both platforms. Thanks, -- dims --- Stefan Bodewig <[EMAIL PROTECTED]> wrote: > Sorry for coming back contardicting my previous mails again. > > On 10 Sep 2003, Stefan Bodewig <[EMAIL PROTECTED]> wrote: > > > I'd say the Axis build works with Ant 1.5.x by accident > > It relies on a bug that has been fixed[1]. > > > (I'll soon commit a version that should make Axis happy for the next > > - i.e. tomorrow's - Gump run). > > I can't do that without reintroducing the bug in Ant. > > > If you want to be sure, that you don't rely on any hidden feature > > likely to actually be a bug in 1.5.x you better don't reuse the old > > instance of Ant. > > You'll have to stop reusing the Ant instance in ForEach. > > Cheers > > Stefan > > Footnotes: > [1] http://issues.apache.org/bugzilla/show_bug.cgi?id=11418 > = Davanum Srinivas - http://webservices.apache.org/~dims/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: GUMP failure caused by ANT (Re: [GUMP] Build Failure - Axis)
Stefan, In case you are not yet tired of this :) - Am using the same ant jars ("Ant version 1.6alpha compiled on September 6 2003") picked up from nightly build area fails on nagoya (SunOS) and works on win2k. - Checked in your suggested fix (http://marc.theaimsgroup.com/?l=axis-dev&m=106323490315627&w=2) yesterday night. Thanks, dims --- Stefan Bodewig <[EMAIL PROTECTED]> wrote: > On Wed, 10 Sep 2003, Davanum Srinivas <[EMAIL PROTECTED]> wrote: > > > Can you please explain why on WIN2K, both 1.5.X and CVS HEAD both > > work fine? > > 1.5.x works on both platforms as most bugs in Ant are cross-platform, > too. > > Maybe you've picked up a CVS HEAD version after Peter Reilly has > committed a change to the Ant task that will use the last value if > multiple properties of the same name have been added to it. To be > sure, you'll need a CVS snapshot before "Wed Sep 10 12:57:19 2003 UTC" > - this should fail on all platforms. > > This means that the Axis build should work in Sam's nightly Gump (on > his home Linux box, not nagoya, BTW) is supposed to pass. The Gump > installation on my Linux machine has worked fine last night as well. > > So basically your task works with 1.5.x by accident and may > work with 1.6 once it is released. *may* as we've not decided yet > whether the patch will be left in as it breaks backwards compatibility > in a subtle way (that could be considered fixing a bug). > > If you want to be save, don't reuse the Ant instance. > > Cheers > > Stefan = Davanum Srinivas - http://webservices.apache.org/~dims/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Change breaks Axis build on Gump?
Stefan, This checkin (http://marc.theaimsgroup.com/?l=ant-dev&m=110027264120374&w=2) seems to have broken Axis's Gump run (http://brutus.apache.org/gump/public/ws-axis/ws-axis/gump_work/build_ws-axis_ws-axis.html) Can you please take a look? thanks, dims -- Davanum Srinivas - http://webservices.apache.org/~dims/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]