RE: Ant
Hello, You are able to add any manifest file you want using the manifest xml property of jar task. Maybe you mean build the content of the manifest file, but this doesn't make sense to me because jar can't guess this information. Hope this help. -Original Message- From: Clement, Jean-Philippe [mailto:[EMAIL PROTECTED]] Sent: mardi 27 novembre 2001 14:14 To: Ant (E-mail) Subject: Ant Hi, I use Ant to compile code, but to make packages too (like a tar/gz or zip ones). It works fine ! Great project !!! Sun's jdk jar command has the -M option in order not to create a manifest file: it is useful for distribution packages. The Ant jar tag does not seem to support the -M equivalent option. Will it be possible to add it ? Thanks. Regards, JP PS: the ant launch batch file for windows has a small bug when ant is installed to a directory containing white spaces... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problem with classes still loaded from WLS...
Hi All, I have an anoying.interesting problem. I have a build script that runs from CruiseControl. It builds everything, runs unit tests, starts weblogic, runs system tests and then finishes. But, the next time it runs it tries to remove the previous build, but it says it can't delete the .jar files. I presume that this is because weblogic loaded the jar files and is not letting go even though it has been shut down (as it runs in the same VM as the build). I would like to have the wlrun task run in a separate VM, but I can't seem to get it to do this... Any idea Thanks, Alan. Alan Pearlman-Spencer MobileAware Ltd. 3225 Lake Drive, National Digital Park, CityWest Business Campus, Dublin 24. Ireland. Phone: +353 (0)1 2410 500 Fax: +353 (0)1 2410 501 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problem with patternsets in ANT 1.4.1
On 27 Nov 2001, Andrew Spyker [EMAIL PROTECTED] wrote: I get the following error when the target runs: Overriding previous definition of reference to myproperties It only is a warning. From the looks of it, the parser(??) goes through the file once before any target it run an it calls addReference yes. which then causes the second addReference (when it actually does the target) to be log annoying. So this needs some refinement 8-) I have temporarily worked around the problem by taking away the id= part, but I was wondering if this indicates an introduced bug as this didn't happen with 1.3. The change between 1.3 and 1.4.1 is, that Ant prints a warning if you redefine a reference - the behavior hasn't changed. Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How do I get less verbose output from junit?
On 27 Nov 2001, [EMAIL PROTECTED] wrote: I saw somewhere that it is possible to use Ant and Junit and get output that looks like this: running com.example.Test . Time: 47.249 OK (61 tests) looks as if this is running junit.textui.TestRunner via java and not using the junit task. You could write a formatter that looks like the above. Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problem with classes still loaded from WLS...
Follow on: I've removed the weblogic and it is still there. If I remove the unit testing it goes away. I now have junit running with a fork=true and it seems to be OK. But I can't get WLS to run in a separate VM using the wlrun task, I could just do a java to get it to run, but it seems to defeat the purpose. Is it possible to have an ant call run in a seperate VM? Maybe it would be nice to have a fork task that forked to run the tasks within??? Thanks, Alan. -Original Message- From: Alan Pearlman Spencer Sent: 28 November 2001 09:28 To: Ant Users List Subject: Problem with classes still loaded from WLS... Hi All, I have an anoying.interesting problem. I have a build script that runs from CruiseControl. It builds everything, runs unit tests, starts weblogic, runs system tests and then finishes. But, the next time it runs it tries to remove the previous build, but it says it can't delete the .jar files. I presume that this is because weblogic loaded the jar files and is not letting go even though it has been shut down (as it runs in the same VM as the build). I would like to have the wlrun task run in a separate VM, but I can't seem to get it to do this... Any idea Thanks, Alan. Alan Pearlman-Spencer MobileAware Ltd. 3225 Lake Drive, National Digital Park, CityWest Business Campus, Dublin 24. Ireland. Phone: +353 (0)1 2410 500 Fax: +353 (0)1 2410 501 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Scope of a property
Hello Ant-users. I have the following problem. I have a check target to check all my propereties. Many targets depends on this check target. But it is only once necessary to run the check target. So I try this: target name=check unless=is.checked property name=is.checked/ But it doesn't work. The lifetime of the property is.checked is from the beginning of the target till it end. And so every time i call the check target, the property is.checked does not exist. Does anybody have an idea. TIA JD __ Gesendet von Yahoo! Mail - http://mail.yahoo.de Ihre E-Mail noch individueller? - http://domains.yahoo.de -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Scope of a property
is this literally taken from your buildfile? What do you expect that property task to do without either a value, location or ref attribute? target name=check unless=is.checked property name=is.checked/ !-- Applicationtype -- condition property=check.application_type.setting ... /condition !-- Deploy -- condition property=check.deploy.setting value=true ... /condition /target !-- Redeployen der Anwendung im ausgepackten Zustand -- target name=redeploy.expand depends=init, check antcall target=clear/ antcall target=deploy.expand/ /target target name=clear depends=init, check if=check.application_type.setting ... /target target name=deploy.expand depends=init, check if=check.deploy.setting ... /target The check target is running thrice. JD __ Gesendet von Yahoo! Mail - http://mail.yahoo.de Ihre E-Mail noch individueller? - http://domains.yahoo.de -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Scope of a property
On Wed, 28 Nov 2001, Holger Danske [EMAIL PROTECTED] wrote: target name=check unless=is.checked property name=is.checked/ this is going to result in in BuildException in Ant 1.5 as one of value,ref or location is required when using the name attribute. I'm not sure whether this simply has been a no-op in Ant 1.4, but I think so. So you probably don't set the property at all. target name=redeploy.expand depends=init, check antcall target=clear/ antcall target=deploy.expand/ /target Here you are really doing the equivalent of ant clear ant deploy.expand issued on the command line - of course check will be consulted once for each run (and once as dependency of redeploy.expand). The target called in the antcalled execeutions should be skipped if the property has been set, though. Why don't you use target name=redeploy.expand depends=clear,deploy.expand ? Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Junit Report Problems
I am running Cruisecontrol 1.2.1a, ant v1.4.1, junit v3.6 and xalan-j_2_2_D10. I want to parse the xml report generated by the junit tag in build.xml. I have included the optional.jar file from apache and have installed the jaxp.jar and cimson.jar xml parser. On a build i get the following error: Has anyone successfully implemented the XML to HTML function in ant? C:\framework\build.xml:73: java.lang.VerifyError: (class: org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer, method: getXSLStreamSource signature: (Ljava/lang/String;)Lorg/apache/xalan/xslt/XSLTInputSource;) Incompatible object argument for function call --- Nested Exception --- java.lang.VerifyError: (class: org/apache/tools/ant/taskdefs/optional/junit/Aggr egateTransformer, method: getXSLStreamSource signature: (Ljava/lang/String;)Lorg /apache/xalan/xslt/XSLTInputSource;) Incompatible object argument for function c all at org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.crea teReport(Unknown Source) at java.lang.reflect.Method.invoke(Native Method) at org.apache.tools.ant.IntrospectionHelper$1.create(IntrospectionHelper .java:167) at org.apache.tools.ant.IntrospectionHelper.createElement(IntrospectionH elper.java:275) at org.apache.tools.ant.ProjectHelper$NestedElementHandler.init(ProjectH elper.java:535) at org.apache.tools.ant.ProjectHelper$TaskHandler.startElement(ProjectHe lper.java:499) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.ja va:329) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1451) at org.apache.crimson.parser.Parser2.content(Parser2.java:1700) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468) at org.apache.crimson.parser.Parser2.content(Parser2.java:1700) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468) at org.apache.crimson.parser.Parser2.content(Parser2.java:1700) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499) at org.apache.crimson.parser.Parser2.parse(Parser2.java:304) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:317) at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:117) at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav a:85) at org.apache.tools.ant.Main.runBuild(Main.java:403) at org.apache.tools.ant.Main.main(Main.java:149) Mike To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat Description: application/ms-tnef -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Junit Report Problems
Compatibility problem between Xalan used when compiling Ant and Xalan you are running. Are you really using the compatibility jar from xalan 2 instead of xalan1 ? if possible stick to xalan2 and do not use the xalan1 api. -- Stéphane Bailliez Software Engineer, Paris - France iMediation - http://www.imediation.com Disclaimer: All the opinions expressed above are mine and not those from my company. -Original Message- From: Mike Downes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 28, 2001 1:40 PM To: [EMAIL PROTECTED] Subject: Junit Report Problems I am running Cruisecontrol 1.2.1a, ant v1.4.1, junit v3.6 and xalan-j_2_2_D10. I want to parse the xml report generated by the junit tag in build.xml. I have included the optional.jar file from apache and have installed the jaxp.jar and cimson.jar xml parser. On a build i get the following error: Has anyone successfully implemented the XML to HTML function in ant? C:\framework\build.xml:73: java.lang.VerifyError: (class: org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer, method: getXSLStreamSource signature: (Ljava/lang/String;)Lorg/apache/xalan/xslt/XSLTInputSource;) Incompatible object argument for function call --- Nested Exception --- java.lang.VerifyError: (class: org/apache/tools/ant/taskdefs/optional/junit/Aggr egateTransformer, method: getXSLStreamSource signature: (Ljava/lang/String;)Lorg /apache/xalan/xslt/XSLTInputSource;) Incompatible object argument for function c all at org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.crea teReport(Unknown Source) at java.lang.reflect.Method.invoke(Native Method) at org.apache.tools.ant.IntrospectionHelper$1.create(IntrospectionHelper .java:167) at org.apache.tools.ant.IntrospectionHelper.createElement(IntrospectionH elper.java:275) at org.apache.tools.ant.ProjectHelper$NestedElementHandler.init(ProjectH elper.java:535) at org.apache.tools.ant.ProjectHelper$TaskHandler.startElement(ProjectHe lper.java:499) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.ja va:329) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1451) at org.apache.crimson.parser.Parser2.content(Parser2.java:1700) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468) at org.apache.crimson.parser.Parser2.content(Parser2.java:1700) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468) at org.apache.crimson.parser.Parser2.content(Parser2.java:1700) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499) at org.apache.crimson.parser.Parser2.parse(Parser2.java:304) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:317) at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:117) at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav a:85) at org.apache.tools.ant.Main.runBuild(Main.java:403) at org.apache.tools.ant.Main.main(Main.java:149) Mike To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] File: ATT29170.txt
RE: Problem with classes still loaded from previous... (was: Problem with classes still loaded from WLS...)
More follow on: I still have the problem. I run a build from cruise control: all OK. I run the second build and I can't delete the jar files produced by the first build because, I presume, something in the first build is still holding on. I thought it was WLS, I removed it and it still happened. I thought it was junit, I removed it and it was still happening. Now I think it may be the javadoc. I'm tempted to replace my ant call with a java fork=true seems overkill though. Other people must (?) have seen this problem. If I try to delete the file by hand it (windows) will not let me until I stop the cruise control process. I presume the same problem would occur if I tried to delete the files at the end of the ant script running. Any ideas? Thanks, Alan. -Original Message- From: Alan Pearlman Spencer Sent: 28 November 2001 10:18 To: Ant Users List Subject: RE: Problem with classes still loaded from WLS... Follow on: I've removed the weblogic and it is still there. If I remove the unit testing it goes away. I now have junit running with a fork=true and it seems to be OK. But I can't get WLS to run in a separate VM using the wlrun task, I could just do a java to get it to run, but it seems to defeat the purpose. Is it possible to have an ant call run in a seperate VM? Maybe it would be nice to have a fork task that forked to run the tasks within??? Thanks, Alan. -Original Message- From: Alan Pearlman Spencer Sent: 28 November 2001 09:28 To: Ant Users List Subject: Problem with classes still loaded from WLS... Hi All, I have an anoying.interesting problem. I have a build script that runs from CruiseControl. It builds everything, runs unit tests, starts weblogic, runs system tests and then finishes. But, the next time it runs it tries to remove the previous build, but it says it can't delete the .jar files. I presume that this is because weblogic loaded the jar files and is not letting go even though it has been shut down (as it runs in the same VM as the build). I would like to have the wlrun task run in a separate VM, but I can't seem to get it to do this... Any idea Thanks, Alan. Alan Pearlman-Spencer MobileAware Ltd. 3225 Lake Drive, National Digital Park, CityWest Business Campus, Dublin 24. Ireland. Phone: +353 (0)1 2410 500 Fax: +353 (0)1 2410 501 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Junit Report Problems
Hi Stephane Thanks for you input on this, but can I clarify that xalan-j_2_2_D10 which has xalanj1compat.jar and xalan-j_2_2_D13 which does not have the xalanj1compat.jar should no longer be used. Also are they not both xalan 2? Regards Mike -Original Message- From: Stephane Bailliez [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 28, 2001 1:53 PM To: Ant Users List Subject: RE: Junit Report Problems Compatibility problem between Xalan used when compiling Ant and Xalan you are running. Are you really using the compatibility jar from xalan 2 instead of xalan1 ? if possible stick to xalan2 and do not use the xalan1 api. -- Stéphane Bailliez Software Engineer, Paris - France iMediation - http://www.imediation.com Disclaimer: All the opinions expressed above are mine and not those from my company. -Original Message- From: Mike Downes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 28, 2001 1:40 PM To: [EMAIL PROTECTED] Subject: Junit Report Problems I am running Cruisecontrol 1.2.1a, ant v1.4.1, junit v3.6 and xalan-j_2_2_D10. I want to parse the xml report generated by the junit tag in build.xml. I have included the optional.jar file from apache and have installed the jaxp.jar and cimson.jar xml parser. On a build i get the following error: Has anyone successfully implemented the XML to HTML function in ant? C:\framework\build.xml:73: java.lang.VerifyError: (class: org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer, method: getXSLStreamSource signature: (Ljava/lang/String;)Lorg/apache/xalan/xslt/XSLTInputSource;) Incompatible object argument for function call --- Nested Exception --- java.lang.VerifyError: (class: org/apache/tools/ant/taskdefs/optional/junit/Aggr egateTransformer, method: getXSLStreamSource signature: (Ljava/lang/String;)Lorg /apache/xalan/xslt/XSLTInputSource;) Incompatible object argument for function c all at org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.crea teReport(Unknown Source) at java.lang.reflect.Method.invoke(Native Method) at org.apache.tools.ant.IntrospectionHelper$1.create(IntrospectionHelper .java:167) at org.apache.tools.ant.IntrospectionHelper.createElement(IntrospectionH elper.java:275) at org.apache.tools.ant.ProjectHelper$NestedElementHandler.init(ProjectH elper.java:535) at org.apache.tools.ant.ProjectHelper$TaskHandler.startElement(ProjectHe lper.java:499) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.ja va:329) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1451) at org.apache.crimson.parser.Parser2.content(Parser2.java:1700) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468) at org.apache.crimson.parser.Parser2.content(Parser2.java:1700) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468) at org.apache.crimson.parser.Parser2.content(Parser2.java:1700) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499) at org.apache.crimson.parser.Parser2.parse(Parser2.java:304) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:317) at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:117) at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav a:85) at org.apache.tools.ant.Main.runBuild(Main.java:403) at org.apache.tools.ant.Main.main(Main.java:149) Mike To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] File: ATT29170.txt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Running parallel tasks
Hi, I am attempting to run various non - dependant target's in parallel in my script using the parallel task. I get the error below, optional.jar is not the problem. I have a feeling I may be confusing tasks with targets, the documentation states: Parallel is a container task - it can contain other Ant tasks. Each nested task within the parallel task will be executed in its own thread. - whereas I need to run target's not tasks in parallel. Could someone shed some light on my (mis)understanding please? Thanks. target name=update_and_compile parallel compile_java/ sequential update_webdocs/ update_rs/ update_smethods/ /sequential /parallel /target Could not create task of type: compile_java. Common solutions are to use taskdef to declare your task, optional task, to put the optional.jar in the lib directory of your ant installation (ANT_HOME). Could not create task of type: update_webdocs. Common solutions are to use taskdef to declare your tas an optional task, to put the optional.jar in the lib directory of your ant installation (ANT_HOME).
Re: Running parallel tasks
On Wed, 28 Nov 2001, Euan Guttridge [EMAIL PROTECTED] wrote: I have a feeling I may be confusing tasks with targets, probably. A target can be identified by its element name, which always is target 8-) - whereas I need to run target's not tasks in parallel. You cannot do that in Ant - what would probably come closest would be an antcall per target you want to execute, but this will create some huge overhead and won't work if the target within your seqential part depend on properties set in one of the other targets (and many other situations). Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Junit Report Problems
-Original Message- From: Mike Downes [mailto:[EMAIL PROTECTED]] Hi Stephane Thanks for you input on this, but can I clarify that xalan-j_2_2_D10 which has xalanj1compat.jar and xalan-j_2_2_D13 which does not have the xalanj1compat.jar should no longer be used. Also are they not both xalan 2? Yes they are but as stated they are developpement version that is: not stable. The Xalan team will not ship anymore Xalan compatibility API for Xalan 1 with Xalan2. If you require the Xalan 1 API you'd better migrate to JAXP if possible or to the Xalan 2 API. Small note: If you have a code that use the Xalan1 API and that was compiled with Xalan1 chance is that it will not work with the Xalan1 compatibility jar. You must compile with the compatibility jar otherwise you will get the error you have. Unless we did a mistake, optional.jar was compiled with the Xalan1 compatibility jar. The current code in JUnit report looks first for Xalan2 then Xalan1. JUnit report needs Xalan because it makes use in the stylesheet of a xalan-specific redirect extension. Stephane -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
junit Questions
I have two questions regarding the junit tasks. 1. When running a batch test, is it at all possible to print all of the results at the end of the test. I'm interested in printing the number of successful tests and what errors/failures occurred.java (i.e. something similar to the results displayed when using junit.textui.TestRunner). 2. I'm come across a number of occassions in version 1.4 when the junit task froze. The place it froze was not consistent. Has anyone else experienced this? Is there an error log somewhere that I could look at? Thanks for the info. Scott Just a mirror for the sun... My smiling eyes are just a mirror for the sun. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problem with Visual SourceSafe task
If the share is named midas$ (a hidden share), why should it be renamed? I had a similar problem. The directory was not hidden though. In my case, the $$ threw an IOException. -Original Message- From: Nico Seessle [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 28, 2001 1:46 AM To: Ant Users List Subject: Re: Problem with Visual SourceSafe task - Original Message - From: Shawn McManus [EMAIL PROTECTED] To: Ant Users List [EMAIL PROTECTED] Sent: Tuesday, November 27, 2001 10:12 PM Subject: RE: Problem with Visual SourceSafe task I don't think that your serverpath should end with $. Rather, it should read, serverPath=\\private1\midas If the share is named midas$ (a hidden share), why should it be renamed? He should try serverPath=\\private1\midas$$ (escaping the dollar-sign to prevent Ant from trying to replace it as a property) Nico -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
jspc
Is there a current jspc task in Ant? I have a need to precompile my jsp's during build. I'd read in the mail archives that it had been an undocumented task since 1.2, although when I use it, it get the can't create message. The optional.jar has the wljspc task, but when I use it, almost all of the jsp's fail to compile. wljspc src=${webDir} dest=${destDir} package=myapp classpath=jsps include name=**/*.jsp / /wljspc However, the docs say that it only works on WLS 4.5.1 and I'm using WLS 5.1sp8. Thanks, Shawn -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [POLL] style and XSLT processors
Personally, I use Xalan, although oddly enough I don't use the style task very often myself. (But I'm biased, since I work on Xalan... 8-) Note that some modern JDK's include a copy of JAXP in the lib/ext directory or in some cases inside the rt.jar (like some of Sun's JDK 1.4.x betas); this includes reference implementations of JAXP including Crimson and Xalan, so this is where you may be getting the transformer from. - Shane you Chappell, Simon P [EMAIL PROTECTED] wrote Wild! I even looked in my CLASSPATH to check that I didn't have anything that I didn't think I had. Very strange. I'll look again. -Original Message- From: Stephane Bailliez [mailto:[EMAIL PROTECTED]] -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] [...] Which option is the whatever is provided in Ant 1.4.1? :-) There is no XSL processor shipped with the Ant distrib AFAIK. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [POLL] style and XSLT processors
Ahhh. Good call. I am using a 1.4 beta JDK. If I place the xalan.jar in ant's lib directory, will that take precidence over the built-in one? Simon -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 28, 2001 10:28 AM To: [EMAIL PROTECTED] Subject: RE: [POLL] style and XSLT processors Personally, I use Xalan, although oddly enough I don't use the style task very often myself. (But I'm biased, since I work on Xalan... 8-) Note that some modern JDK's include a copy of JAXP in the lib/ext directory or in some cases inside the rt.jar (like some of Sun's JDK 1.4.x betas); this includes reference implementations of JAXP including Crimson and Xalan, so this is where you may be getting the transformer from. - Shane you Chappell, Simon P [EMAIL PROTECTED] wrote Wild! I even looked in my CLASSPATH to check that I didn't have anything that I didn't think I had. Very strange. I'll look again. -Original Message- From: Stephane Bailliez [mailto:[EMAIL PROTECTED]] -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] [...] Which option is the whatever is provided in Ant 1.4.1? :-) There is no XSL processor shipped with the Ant distrib AFAIK. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
task for full text search
hi, i'd like to have my build failed, whenever a special string (e.g. '@inheritDoc') appears in one of the files generated (e.g. the javadoc html files) during the build process. i had a look on the various tasks (replace, filter ...), which sound like they can help, but can't find a solution, which would not require the exec task. any ideas? thanks, mirko -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: task for full text search
don't think I've ever seen one, but if you can't find one, how about writing a match task using jakarta-regexp? Writing tasks for ant is pretty simple. Cheers, Brett -Original Message- From: Mirko Seifert [mailto:[EMAIL PROTECTED]] Sent: Thursday, 29 November 2001 9:48 AM To: Ant Users List Subject: task for full text search hi, i'd like to have my build failed, whenever a special string (e.g. '@inheritDoc') appears in one of the files generated (e.g. the javadoc html files) during the build process. i had a look on the various tasks (replace, filter ...), which sound like they can help, but can't find a solution, which would not require the exec task. any ideas? thanks, mirko -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: task for full text search
On Wednesday 28 November 2001 02:48 pm, you wrote: hi, i'd like to have my build failed, whenever a special string (e.g. '@inheritDoc') appears in one of the files generated (e.g. the javadoc html files) during the build process. i had a look on the various tasks (replace, filter ...), which sound like they can help, but can't find a solution, which would not require the exec task. any ideas? Not that I know of. You could write your own task that searches for a particular regular expression (using the apache oro package bundled with ant) and then fails (or whatever) upon match. Paul thanks, mirko -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: junit Questions
- Original Message - From: Scott Goldstein [EMAIL PROTECTED] I have two questions regarding the junit tasks. 1. When running a batch test, is it at all possible to print all of the results at the end of the test. I'm interested in printing the number of successful tests and what errors/failures occurred.java (i.e. something similar to the results displayed when using junit.textui.TestRunner). How about using junitreport to generate an HTML report? That gives a summary page with the stats you are looking for. 2. I'm come across a number of occassions in version 1.4 when the junit task froze. The place it froze was not consistent. Has anyone else experienced this? Is there an error log somewhere that I could look at? Best thing to do when experiencing weird stuff with Ant is to use the -debug switch and see if there is anything displayed in that output that can give clues. Are your tests doing anything out of the ordinary? Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Scope of a property
I want to discuss a little bit more on this. From what I understand, a property within a target will not be available to another target unless there is a dependence. For example, target name=myInit property name=Me value=IsMe/ /target target name=showMe echo message=${Me}/ /target the above echo will not display any. However, the following will work target name=showMe depends=myInit echo message=${Me}/ /target But anyway, in order to make a property global, you have to put it outside targets. Am I right? thanks, Jerry -Original Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 28, 2001 4:20 AM To: [EMAIL PROTECTED] Subject: Re: Scope of a property On Wed, 28 Nov 2001, Holger Danske [EMAIL PROTECTED] wrote: target name=check unless=is.checked property name=is.checked/ this is going to result in in BuildException in Ant 1.5 as one of value,ref or location is required when using the name attribute. I'm not sure whether this simply has been a no-op in Ant 1.4, but I think so. So you probably don't set the property at all. target name=redeploy.expand depends=init, check antcall target=clear/ antcall target=deploy.expand/ /target Here you are really doing the equivalent of ant clear ant deploy.expand issued on the command line - of course check will be consulted once for each run (and once as dependency of redeploy.expand). The target called in the antcalled execeutions should be skipped if the property has been set, though. Why don't you use target name=redeploy.expand depends=clear,deploy.expand ? Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Note: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. -- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Scope of a property
I want to discuss a little bit more on this. A topic dear to my heart From what I understand, a property within a target will not be available to another target unless there is a dependence. Well, sort of. For the same execution thread (terminology is a bit off here) properties are available any time after being defined. For example, target name=myInit property name=Me value=IsMe/ /target target name=showMe echo message=${Me}/ /target the above echo will not display any. These two targets are never executed at the same time. You'd run these by doing one of: ant myInit showMe -or- ant myInit ant showMe Both are essentially equivalent and each invocation starts fresh with properties. However, the following will work target name=showMe depends=myInit echo message=${Me}/ /target But anyway, in order to make a property global, you have to put it outside targets. Am I right? Again, you're right in that this is typically how it would work, but other scenarios exist using ant/antcall so that a property defined can be overridden or set for the invocation. Clear as mud?! :) Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: jspc
There is a jspc task in the nightly build, but also check out bugzilla for any jspc related issues, there are still a few. It is documented: if your man pages show the task, then you are up to date. The task uses jasper and is fine for testing jsp pages prior to deployment, but it needs a bit more work before being consistently usable as an alternative to run time compilation. - Original Message - From: Shawn McManus [EMAIL PROTECTED] To: Ant Users List (E-mail) [EMAIL PROTECTED] Sent: Wednesday, November 28, 2001 1:33 PM Subject: jspc Is there a current jspc task in Ant? I have a need to precompile my jsp's during build. I'd read in the mail archives that it had been an undocumented task since 1.2, although when I use it, it get the can't create message. The optional.jar has the wljspc task, but when I use it, almost all of the jsp's fail to compile. wljspc src=${webDir} dest=${destDir} package=myapp classpath=jsps include name=**/*.jsp / /wljspc However, the docs say that it only works on WLS 4.5.1 and I'm using WLS 5.1sp8. Thanks, Shawn -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problem with xalan
use fork=true to spawn a new VM. If I recall the linkage error is caused by the ant task classloader loading a class from the xalan jar that was already loaded by the system classloader from another source (crimson.jar?) resulting in a seal error. In any event, the forking should solve the problem. Tim -Original Message- From: Stefan Thull [mailto:[EMAIL PROTECTED]] Sent: Monday, November 26, 2001 11:59 AM To: [EMAIL PROTECTED] Subject: Problem with xalan Hi, I am a newbie trying to use ant to transform a xml-file to html with xalan. I am working with win 98 jdk 1.3, ant 1.4 and xalan 2 When I use the following test.bat file xalan works: @echo off set classpath=D:\tools\xalan\bin\xerces.jar;D:\tools\xalan\bin\xalan.jar java org.apache.xalan.xslt.Process -in test.xml -xsl pre2html.xsl -out test.html Now I tried it with the following build.xml: project name=MyProject default=xsl basedir=. !-- set global properties for this build -- property name=src value=./ property name=build value=build/ property name=dist value=dist/ target name=xsl java classname=org.apache.xalan.xslt.Process arg line=-in test.xml -xsl pred2html.xsl -out test2.html/ classpath pathelement location=D:\tools\xalan\bin\xerces.jar/ pathelement location=D:\tools\xalan\bin\xalan.jar/ /classpath /java /target /project I get the following error: \ant-test ant Buildfile: build.xml xsl: [java] [java] Location of error unknown XSLT Error java.lang.LinkageError: loader constraints violated when linking org/xml/sax/InputSource class --- The same error appeared as I used path instead of location in the classpath-tag. What have I done wrong? Thank you very much Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Starting JBoss from a build file
I am trying to startup JBoss from within a target for running tests. I (think!) that I have all the relevant pieces as taken from the JBoss scripts run_with_tomcat.bat and run.bat. The following is the relevant snippet from my build file, where jboss.home is a property set to my jboss installation directory. java classname=org.jboss.Main classpath=;${java.home}/../lib/tools.jar;${jboss.home}/jboss/bin/run.jar;${ jboss.home}/jboss/lib/crimson.jar fork=yes dir=${jboss.home}/jboss/bin jvmarg value=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.Do cumentBuilderFactoryImp / jvmarg value=-Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParse rFactoryImpl / arg value=tomcat / /java Everything starts off OK but it doesn't seem to be able to find the crimson classes as per the following output [java] Forking c:\java\jdk1.3.1_01\jre\..\bin\java.exe -Djavax.xml.parsers.DocumentBuilderF actory=org.apache.crimson.jaxp.DocumentBuilderFactoryImp -Djavax.xml.parsers .SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl -classpath C:\java\jdk1.3.1_01\lib\tools.jar;C:\java\JBoss-2.4.3_Tomcat-3.2.3\jboss\bin \run.jar;C:\java\JBoss-2.4.3_Tomcat-3.2.3\jboss\lib\crimson.jar org.jboss.Main tomcat [java] jboss.home = C:\java\JBoss-2.4.3_Tomcat-3.2.3\jboss [java] Using JAAS LoginConfig: file:/C:/java/JBoss-2.4.3_Tomcat-3.2.3/jboss/conf/tomcat/auth.conf [java] Using configuration tomcat [java] [root] Started Log4jService, config=file:/C:/java/JBoss-2.4.3_Tomcat-3.2.3/jboss/conf/tomcat/log4j.proper ties [java] [Info] Java version: 1.3.1_01,Sun Microsystems Inc. [java] [Info] Java VM: Java HotSpot(TM) Client VM 1.3.1_01,Sun Microsystems Inc. [java] [Info] System: Windows 2000 5.0,x86 [java] [Shutdown] Shutdown hook added [java] [Default] Runtime error [java] [Default] javax.xml.parsers.FactoryConfigurationError: java.lang.ClassNotFoundException: org.apache.crimson.jaxp.DocumentBuilderFactoryImp [java] [Default] at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory. java:118) [java] [Default] [java] [Default] at org.jboss.configuration.ConfigurationService.loadConfiguration(Configuration Service.java:371) [java] [Default] [java] [Default] at java.lang.reflect.Method.invoke(Native Method) [java] [Default] [java] [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [java] [Default] [java] [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [java] [Default] [java] [Default] at org.jboss.Main.init(Main.java:213) [java] [Default] [java] [Default] at org.jboss.Main$1.run(Main.java:127) [java] [Default] JBoss 2.4.3 Started in 0m:0s The same Java command works from the command line as does the following ant task once I remove the pause from run.bat. However, I'd prefer not to run a platform specific command file. exec executable=${jboss.home}/jboss/bin/run_with_tomcat.bat dir=${jboss.home}/jboss/bin / Has anyone had any success with this? Or I am missing something obvious? -- Jill --- The contents of this message are the views of the Author and do not necessarily reflect the views of SUNCORP METWAY LTD ABN 66 010 831 722. The content of this e-mail, including attachments is a confidential communication between the Suncorp Metway Group and the intended addressee. Any unauthorised use of the contents is expressly prohibited. If you have received this e-mail in error please contact the sender immediately and then delete the message and any attachment(s). http://www.suncorpmetway.com.au -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problem with Visual SourceSafe task
- Original Message - From: Shawn McManus [EMAIL PROTECTED] To: Ant Users List [EMAIL PROTECTED] Sent: Wednesday, November 28, 2001 10:19 PM Subject: RE: Problem with Visual SourceSafe task If the share is named midas$ (a hidden share), why should it be renamed? I had a similar problem. The directory was not hidden though. In my case, the $$ threw an IOException. A single $-sign is used by Ant to detect a property in the buildfile. If there is no property found the $-sign is simply removed. A double $-sign is used to escape this behaviour and simply use a real $-sign somewhere in your buildfile. It is reeplaced with a single $-sign. There is *no* magic with this, and putting $$ somewhere does not help you with anything, if there is no need for a $-sign. If you still have trouble with this IOException, it would be nice, if you could send some more info. Nico -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]