Failed to create task or type?
Hi, I'm using Ant 1.7 on Windows XP. I'm getting this error when executing my build: build.xml:208: Problem: failed to create task or type wlst Cause: The name is undefined Action: check the spelling Action: Check that any custom task types have been declared The line being complained about is Any help is most appreciated. I am including the build.xml file in case that makes things more clear. Thanks, - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I list what files are being compiled?
Hi, What can I do, either in my build file or using a command line argument, to list what .java files ant is compiling? Thanks, - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Compiling JSP files using ANT?
Hi, I'm using Ant 1.6 and WL 9.2.2. Are there directives I can add to my build.xml file that will allow me to compile JSPs? Any suggestions you have are greatly appreciated, - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Copying everything except one file
Hi, I'm using this command to copy a directory but what I would like to copy all files in that directory except the one named "mine.properties". What is the quickest way to do this? - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to restrict what goes into my WEB-INF/lib directory?
Hi, I want to instruct ant that upon building a WAR file, only include certain files from my lib directory in the WEB-INF/lib directory. However, this doesn't seem to be working Instead ant seems to be including all the jar files in my ${webInfLibDir} instead of just the one. Any ideas on why? Thanks, - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Why is everything getting included in my WAR?
Hi, I want to build my WAR file such that it only includes specific JARS from my staging lib directory as opposed to all the ones that are in there. Unfortunately, despite my include and exclude directives, all JARS from the directory are getting included. Can you help me figure out what is wrong with the below? Thanks, - Dave ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Way to simplify what is in my project class path?
Hi, Currently I'm listing out each JAR file from a particular directory to put into my project class path. I was wondering if there is a way to say, include every jar file from that directory. Right now, here's what I have that I hope to simplify: Thanks, - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using ANT for JSF validation
Hi, Is there a way I can configure my build script such that it reports validation errors for JSF (Java Server Faces) applications? I'm using the Apache MyFaces 1.1.6 implementation. Thanks, - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Conditional depends clause
Hi, I have this in my build.xml file What I would like, however, is to only have one depends option depending on what a variable "env" is, which is passed to my script. So, for example, if env = "dev", I would like to execute only the "copyDevConf" option above. How do I configure this in ANT? Thanks, - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to figure out what is in my class path?
Hi, Is there a way to see what ANT thinks is in my classpath? I have a condition that's failing But the JAR file (junit.jar) is set up in my project.class.path ... Not quite sure the right way to debug this. Thanks, - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to figure out what is in my class path?
I tried your suggestion, but no luck. I think I'm not including my classpath correctly in my build-junit-test.xml script. I have ... and within "build.xml" I define what you suggest ... But how does my "" script understand to use the project.class.path as its classpath? - Dave > ---Original Message--- > From: Marc Weber <[EMAIL PROTECTED]> > Subject: Re: How to figure out what is in my class path? > Sent: Nov 24 '08 16:56 > > On Mon, Nov 24, 2008 at 04:40:19PM +, [EMAIL PROTECTED] wrote: > > Hi, > > > > Is there a way to see what ANT thinks is in my classpath? I have a > condition that's failing > > > > > > > > > > > > > > > > > > > > But the JAR file (junit.jar) is set up in my project.class.path ... > > > > > > > > > > > > > > > > > > Not quite sure the right way to debug this. Thanks, - Dave > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > That's a bug I've posted some days ago. The solution is to add the > classpath in the build.xml file manually after (after ) > > > ${junit}/junit.jar is your junit.jar file > > sed command: > sed -i 's@@ location="${junit}/junit.jar"/>@' build.xml > > > Hopefully someone with more knowledge about the ant build system can add > a one line fix so that this can be configured by -D or by > bulid.properties. > > If you want I can prepare a patch. Just tell me to do so. > > Anyway I wonder how ant devs do compile ant? > > Sincerly > Marc Weber > > - > 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: How to figure out what is in my class path?
Hi David, DEBUG: project.class.path.property = "${project.class.path}" I followed your suggestion, only I put the FAIL statement in the target being executed ... but what is printed out on the screen is /export/third-party/etsbea/staging/wls_9.2.2/CedarPoint_Service/ant-common-checks.xml:41: DEBUG: project.class.path.property = "${project.class.path}" Am I using the right syntax for printing this out? Why isn't evaluating what is in the {}'s? Thanks, - Dave > ---Original Message--- > From: David Weintraub <[EMAIL PROTECTED]> > Subject: Re: How to figure out what is in my class path? > Sent: Nov 24 '08 18:11 > > Try printing out project.class.path right after you define it: > > > > DEBUG: project.class.path.property = > "${project.class.path.property}" > > The will stop the build from progressing, so you can see the > classpath. You could use instead if you prefer. > -- > David Weintraub > [EMAIL PROTECTED] > > > > On Mon, Nov 24, 2008 at 1:03 PM, <[EMAIL PROTECTED]> wrote: > > I tried your suggestion, but no luck. I think I'm not including my > classpath correctly in my build-junit-test.xml script. I have ... > > > > > > > > > > > > > > > > > > and within "build.xml" I define what you suggest ... > > > > > > > > > > > > > > > > > > > > But how does my "" script understand to use the project.class.path as its > classpath? > > > > - Dave > > > > > >> ---Original Message--- > >> From: Marc Weber <[EMAIL PROTECTED]> > >> Subject: Re: How to figure out what is in my class path? > >> Sent: Nov 24 '08 16:56 > >> > >> On Mon, Nov 24, 2008 at 04:40:19PM +, [EMAIL PROTECTED] wrote: > >> > Hi, > >> > > >> > Is there a way to see what ANT thinks is in my classpath? I have a > condition that's failing > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > But the JAR file (junit.jar) is set up in my project.class.path ... > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > Not quite sure the right way to debug this. Thanks, - Dave > >> > > >> > - > >> > To unsubscribe, e-mail: [EMAIL PROTECTED] > >> > For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> That's a bug I've posted some days ago. The solution is to add the > >> classpath in the build.xml file manually after (after id="classpath">) > >> > >> > >> ${junit}/junit.jar is your junit.jar file > >> > >> sed command: > >> sed -i 's@@ location="${junit}/junit.jar"/>@' build.xml > >> > >> > >> Hopefully someone with more knowledge about the ant build system can add > >> a one line fix so that this can be configured by -D or by > >> bulid.properties. > >> > >> If you want I can prepare a patch. Just tell me to do so. > >> > >> Anyway I wonder how ant devs do compile ant? > >> > >> Sincerly > >> Marc Weber > >> > >> - > >> 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] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to figure out what is in my class path?
I'm running Ant 1.6. Since I'm not the sysadmin, I can't easily upgrade. I've tried the "-lib" directive in my shell script ... ant -lib /export/third-party/etsbea/staging/wls_9.2.2/CedarPoint_Service/deployment/APP-INF/lib/junit.jar -buildfile build-junit-test.xml -Denv=$WLS_ENV -Dtier=$TIER -Dwlshosturl=$hosturl -Dwlsuser=$username -Dwlspwd=$password -Dpwd=$pwd $target but my condition is still failing. Does anyone know a smaller test I can run to troubleshoot this problem further? Thanks, - Dave > ---Original Message--- > From: Peter Reilly <[EMAIL PROTECTED]> > Subject: Re: How to figure out what is in my class path? > Sent: Nov 24 '08 22:03 > > With current ant tasks, one cannot change the classpath used within > build.xml. > > For junit and ant 1.7.0 +, one can set the location of the junit.jar > file within the > task itself - this is indeed the recommended way as it means that one > does not need to modify the ant distribution or use -lib at the command line. > > > > > > > > > > Peter > > > On Mon, Nov 24, 2008 at 4:40 PM, <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Is there a way to see what ANT thinks is in my classpath? I have a > condition that's failing > > > > > > > > > > > > > > > > > > > > But the JAR file (junit.jar) is set up in my project.class.path ... > > > > > > > > > > > > > > > > > > Not quite sure the right way to debug this. Thanks, - Dave > > > > - > > 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]
NoSuchMethodError when building a task
Hi, I'm using Eclipse 3.4 on Windows XP to run my Ant build script (Ant 1.6). When running my build.xml file, I get the error ... Buildfile: C:\Temp\CedarPoint_Service\build.xml check-weblogic: check-javadoc: check-ejbgen: generate-query-ejb: [delete] Deleting directory C:\Temp\CedarPoint_Service\deployment\META-INF [mkdir] Created dir: C:\Temp\CedarPoint_Service\deployment\META-INF BUILD FAILED C:\Temp\CedarPoint_Service\build.xml:290: java.lang.NoSuchMethodError: com.sun.javadoc.AnnotationDesc.memberValues()[Lcom/sun/javadoc/AnnotationDesc$MemberValuePair; The task in question is below. I'm using a 1.5 JDK compiler (http://screencast.com/t/opdLhP5a). Any insights are appreciated, - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NoSuchMethodError when building a task
Actually I had been mistaken earlier when I said Ant 1.6. I do have 1.7. This is the folder in my C:\eclipse\plugins directory org.apache.ant_1.7.0.v200706080842 Thanks, - Dave > ---Original Message--- > From: Ammar Khalid <[EMAIL PROTECTED]> > Subject: RE: NoSuchMethodError when building a task > Sent: Dec 01 '08 15:34 > > Upgrade to Ant 1.7.1, as Ant 1.6 is the root of a lot of Evil! You will > need to update the ANT plugin of your eclipse for the newer version. > > Ammar > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: 01 December 2008 15:20 > To: user@ant.apache.org > Subject: NoSuchMethodError when building a task > > Hi, > > I'm using Eclipse 3.4 on Windows XP to run my Ant build script (Ant > 1.6). When running my build.xml file, I get the error ... > > Buildfile: C:\Temp\CedarPoint_Service\build.xml > check-weblogic: > check-javadoc: > check-ejbgen: > generate-query-ejb: > [delete] Deleting directory > C:\Temp\CedarPoint_Service\deployment\META-INF > [mkdir] Created dir: C:\Temp\CedarPoint_Service\deployment\META-INF > > BUILD FAILED > C:\Temp\CedarPoint_Service\build.xml:290: java.lang.NoSuchMethodError: > com.sun.javadoc.AnnotationDesc.memberValues()[Lcom/sun/javadoc/Annotatio > nDesc$MemberValuePair; > > The task in question is below. I'm using a 1.5 JDK compiler > (http://screencast.com/t/opdLhP5a). Any insights are appreciated, - > Dave > > > > > source="2.18" > outputDir="${src}" > sourcepath="${src}" > descriptorDir="${deployment}/META-INF" > exitOnError="true" > > > > > > > > > > > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > This e-mail, including any attached files, may contain confidential and > privileged information for the sole use of the intended recipient. Any > review, use, distribution, or disclosure by others is strictly > prohibited. If you are not the intended recipient (or authorized to receive > information for the intended recipient), please contact the sender by reply > e-mail and delete all copies of this message. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re-installed Eclipse, now Ant won't run
I just re-installed Eclipse 3.4 (Win XP) with Ant 1.7. Something is wrong with my environment (I'm thinking) because I'm not able to run even a simple build script, like the below. Hello all When I run this through the Ant perspective, the console indicates that the process kicked off, but hangs and never terminates (notice the red terminate button is active) -- http://screencast.com/t/ZSZY6BXHYKm. My gut tells me this has something to do with my environment but I don't know what to check or where the problem is reported. Any ideas where to start? Thanks, - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is this error due to a versioning issue?
Hi, I'm running Eclipse 3.4 (WinXP), Ant 1.7, JDK 1.5. When I run my build script, I get this error: Buildfile: C:\Temp\CedarPoint_Service\build-junit-test.xml check-junit: build-tests: [javac] Compiling 9 source files to C:\Temp\CedarPoint_Service\classes [copy] Copying 2 files to C:\Temp\CedarPoint_Service\classes run-query-test: [junit] java.io.FileNotFoundException: C:\Temp\CedarPoint_Service\junitvmwatcher1674472394.properties (The system cannot find the file specified) [junit] at java.io.FileInputStream.open(Native Method) [junit] at java.io.FileInputStream.(FileInputStream.java:106) [junit] at java.io.FileReader.(FileReader.java:55) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeAsForked(JUnitTask.java:1028) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:817) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JUnitTask.java:1657) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:764) [junit] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [junit] at java.lang.reflect.Method.invoke(Method.java:585) [junit] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) [junit] at org.apache.tools.ant.Task.perform(Task.java:348) [junit] at org.apache.tools.ant.Target.execute(Target.java:357) [junit] at org.apache.tools.ant.Target.performTasks(Target.java:385) [junit] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329) [junit] at org.apache.tools.ant.Project.executeTarget(Project.java:1298) [junit] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [junit] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) [junit] at org.apache.tools.ant.Project.executeTargets(Project.java:1181) [junit] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423) [junit] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137) BUILD FAILED C:\Temp\CedarPoint_Service\build-junit-test.xml:118: Test QuerySubscriberTest failed (crashed) The internet seems to suggest that there is something in my classpath that shouldn't be there, but I couldn't find specifics. In my Window -> Preferences -> Ant -> Runtime, I have Ant Home Entries: C:/apache-ant-1.7.0/lib/*.jar (all the JARS that come in this directory) Global Entries: C:/Program Files/eclipse/plugins/org.junit4_4.3.1/junit.jar Contributed Entries: C:/Program Files/eclipse/configuration/org.eclipse.osgi/bundles/(a bunch of stuff that I can't delete) Any ideas how I can attack this problem? Thanks, - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I figure out what JUnit test case is failing?
Hi, I'm using Ant 1.6.5 with Eclipse 3.4 (Win XP), JRE 1.5. I run a particular JUnit task that fails, but I can't figure out which test within my JUnit TestCase class is failing. Here's my task ... but all that is output to my Eclipse console is run-delete-add-test: [junit] Running DeleteAddSubscriberTest [junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 2.156 sec BUILD FAILED C:\Temp\CedarPoint_Service\build-junit-test.xml:105: Test DeleteAddSubscriberTest failed How can I get more detailed information about what is going wrong? There are 8 tests within the DeleteAddSubscriberTest class. Thanks, - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: How can I figure out what JUnit test case is failing?
Hi, I have this plugin -- org.junit4_4.3.1 -- in my C:\Eclipse\plugins directory. Yes, I am running an Ant build file in Eclipse. What I would like is for the specific test case that is failing to be printed to my console. Right now, I only get this run-delete-add-test: [junit] Running DeleteAddSubscriberTest [junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 2.172 sec Here's the screen shot to put it in context (http://screencast.com/t/jxz3k7f7nc). But which test failed, and why? My question is, is it possible to output that information the console? I'm fine writing it to a separate file if that is the only possible solution. - Dave > ---Original Message--- > From: Knuplesch, Juergen <[EMAIL PROTECTED]> > Subject: AW: How can I figure out what JUnit test case is failing? > Sent: Dec 04 '08 06:51 > > So what do you want to do? > > 1.Run a junittest under Eclipse? (There is a good Junit plugin for Eclipse: > Use it!) > 2.Run a junit-test under ANT? (e.g. run a bunch of tests in batchmode): Use > > > > -- > Jürgen Knuplesch > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 3. Dezember 2008 18:31 > An: Ant Users List > Betreff: How can I figure out what JUnit test case is failing? > > Hi, > > I'm using Ant 1.6.5 with Eclipse 3.4 (Win XP), JRE 1.5. I run a particular > JUnit task that fails, but I can't figure out which test within my JUnit > TestCase class is failing. Here's my task ... > > > printsummary="on" showoutput="true"> > > > > > > > outfile="junit.delete.add.result"> > > > > > > but all that is output to my Eclipse console is > > run-delete-add-test: > [junit] Running DeleteAddSubscriberTest > [junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 2.156 sec > > BUILD FAILED > C:\Temp\CedarPoint_Service\build-junit-test.xml:105: Test > DeleteAddSubscriberTest failed > > > How can I get more detailed information about what is going wrong? There > are 8 tests within the DeleteAddSubscriberTest class. > Thanks, - Dave > > - > 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]
How can I exclude this directory?
Hi, I'm using Ant 1.6 and trying to build my WAR file. Im my web root directory, I have a directory named "dojo" that I wish to exclude from my WAR file. Here is how I construct the WAR file ... but it seems the '' has no effect. The dojo directory gets inserted into my WAR. Any ideas? - Dave - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Using ant to check out only a single file from CVS
Hi, I'm using Ant 1.6 on Solaris 9. Right now I have a shell script in which I can check out a package from CVS: ant -Duser=$username -Dbaseline=$baseline -Dpackage=$CVS_PACKAGE_NAME cvsCheckout but I was wondering how I can check out only a single file from CVS and then place it on a certain directory in my server. Any thoughts are most appreciated, - Dave - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Making my JAR file include everything
Hi, I'm using Ant 1.6 on Solaris 9. When I created a JAR file, I'm trying to include everything in my base directory ("basedir") as well as an additional properties file ... But this command creates a JAR file without the contents of the basedir. If I remove the 'includes="${nps-config-client-file-location-properties}"' clause, then the contents of the basedir are included. How can I have both the properties file and the contents of the base dir? Thanks, - Dave > ---Original Message--- > From: dave.alvar...@remanresource.com > Subject: Using ant to check out only a single file from CVS > Sent: Feb 04 '09 14:46 > > Hi, > > I'm using Ant 1.6 on Solaris 9. Right now I have a shell script in which I > can check out a package from CVS: > > ant -Duser=$username -Dbaseline=$baseline -Dpackage=$CVS_PACKAGE_NAME > cvsCheckout > > but I was wondering how I can check out only a single file from CVS and then > place it on a certain directory in my server. Any thoughts are most > appreciated, - Dave > > - > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > > - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Re: Making my JAR file include everything
Great idea. That's what I did and everything is fine now. - > ---Original Message--- > From: Haiqi Wei > Subject: Re: Making my JAR file include everything > Sent: Feb 04 '09 17:05 > > I have not tested this. But can you copy the property files into the basedir > beforehand, > then do > > >basedir="${build}"/> > > > > Haiqi. > > > On Wed, Feb 4, 2009 at 10:51 AM, wrote: > > > Hi, > > > > I'm using Ant 1.6 on Solaris 9. When I created a JAR file, I'm trying to > > include everything in my base directory ("basedir") as well as an > additional > > properties file ... > > > > >basedir="${build}" > >includes="${nps-config-client-file-location-properties}" /> > > > > But this command creates a JAR file without the contents of the basedir. > > If I remove the 'includes="${nps-config-client-file-location-properties}"' > > clause, then the contents of the basedir are included. How can I have both > > the properties file and the contents of the base dir? > > > > Thanks, - Dave > > > > > > > ---Original Message--- > > > From: dave.alvar...@remanresource.com > > > Subject: Using ant to check out only a single file from CVS > > > Sent: Feb 04 '09 14:46 > > > > > > Hi, > > > > > > I'm using Ant 1.6 on Solaris 9. Right now I have a shell script in > > which I can check out a package from CVS: > > > > > > ant -Duser=$username -Dbaseline=$baseline -Dpackage=$CVS_PACKAGE_NAME > > cvsCheckout > > > > > > but I was wondering how I can check out only a single file from CVS and > > then place it on a certain directory in my server. Any thoughts are most > > appreciated, - Dave > > > > > > - > > > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > > > For additional commands, e-mail: user-h...@ant.apache.org > > > > > > > > > > - > > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > > For additional commands, e-mail: user-h...@ant.apache.org > > > > > - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Reading a property from a file
Hi, I'm uisng Ant 1.6. I have this target ... For the property, 'wsdl="${basedir}/wsdl_files/ProvisioningService.wsdl"', I would prefer to read this property out of a properties file I have, which has the line ... PROVISIONING_SERVICE_WSDL_URL=http://99.99.99.99:/ProvisioningAccountService/ProvisioningAccountService?WSDL How can I tell ant to get the value from there? Thanks, - Dave - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Re: Reading a property from a file
Thanks for your reply. Regarding the property file directive, "", where are you actually loading the property "PROVISIONING_SERVICE_WSDL_URL" from the file and assigning it to a variable? - Dave > ---Original Message--- > From: David Weintraub > Subject: Re: Reading a property from a file > Sent: Feb 18 '09 18:10 > > What about ? > > What I normally do is something like this: > >value="${basedir}/default_property_file_name.properties"/> > > > That way, I can put the property file name on the command line, or > read in the default property file if it exists. > > You can also override any property setting in your build.xml by simply > placing it on the command line: > > So do this: > > > > name="${basedir}/wsdl_files/ProvisioningService.wsdl > wsdl="${provisioning.service.wsdl.file}" > > destFile="${deployment}/APP-INF/lib/ProvisioningServiceClient.jar" > > packageName="com.myco.nps.regui.provisioning.client" > serviceName="ProvisioningService" > > > Then you can do this on the command line: > > $ ant > -Dprovisioning.service.wsdl.file=http://99.99.99.99:/ProvisioningAccountService/ProvisioningAccountService?WSDL > > The task that sets provisioning.service.wsdl.file will be > overridden by the command line setting. > > On Wed, Feb 18, 2009 at 12:17 PM, wrote: > > Hi, > > > > I'm uisng Ant 1.6. I have this target ... > > > > > > > >wsdl="${basedir}/wsdl_files/ProvisioningService.wsdl" > > >destFile="${deployment}/APP-INF/lib/ProvisioningServiceClient.jar" > > >packageName="com.myco.nps.regui.provisioning.client" > >serviceName="ProvisioningService" > >classpath="${java.class.path}" > >> > > > > > > > > > > > > > > For the property, 'wsdl="${basedir}/wsdl_files/ProvisioningService.wsdl"', > I would prefer to read this property out of a properties file I have, which > has the line ... > > > > > PROVISIONING_SERVICE_WSDL_URL=http://99.99.99.99:/ProvisioningAccountService/ProvisioningAccountService?WSDL > > > > > > How can I tell ant to get the value from there? > > > > Thanks, - Dave > > > > - > > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > > For additional commands, e-mail: user-h...@ant.apache.org > > > > > > > > -- > -- > David Weintraub > qazw...@gmail.com > > - > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > > - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Re: AW: Reading a property from a file
Again, I really appreciate all the advice I'm getting, but being so inexperienced with Ant, I'm still missing the solution. The properties file I refer to is not in any way related to my Ant tasks. But it does contain a URL I would like to use in my Ant script, so I can keep that URL in one place. So what are the commands/XML to extract the key in the following key-value pair ... PROVISIONING_SERVICE_WSDL_URL=http://99.99.99.99:/ProvisioningAccountService/ProvisioningAccountService?WSDL in my "file.properties" file that will allow me to plug in that URL into the "wsdl" attribute of my "" task? Thanks, - Dave > ---Original Message--- > From: jan.mate...@rzf.fin-nrw.de > Subject: AW: Reading a property from a file > Sent: Feb 19 '09 06:16 > > is a task as all others, therefore you can use that everywhere. > If your properties file contains 'just' properties for that generation, > placing the task just in front of the is a good idea. > Usually you have a build.properties with all properties for the build, like > java source directory, javac target, etc. Then a common place is directly > under . > > > Jan > > > >-Ursprüngliche Nachricht- > >Von: dave.alvar...@remanresource.com > >[mailto:dave.alvar...@remanresource.com] > >Gesendet: Mittwoch, 18. Februar 2009 19:26 > >An: Ant Users List > >Betreff: Re: Reading a property from a file > > > >Thanks for your reply. Regarding the property file directive, > >"", where are you actually loading the property > >"PROVISIONING_SERVICE_WSDL_URL" from the file and assigning it > >to a variable? > > > > - Dave > > > >> ---Original Message--- > >> From: David Weintraub > >> Subject: Re: Reading a property from a file > >> Sent: Feb 18 '09 18:10 > >> > >> What about ? > >> > >> What I normally do is something like this: > >> > >> >> value="${basedir}/default_property_file_name.properties"/> > >> > >> > >> That way, I can put the property file name on the command line, or > >> read in the default property file if it exists. > >> > >> You can also override any property setting in your > >build.xml by simply > >> placing it on the command line: > >> > >> So do this: > >> > >> > >> >> > >name="${basedir}/wsdl_files/ProvisioningService.wsdl > >> >> > >wsdl="${provisioning.service.wsdl.file}" > >> > >> destFile="${deployment}/APP-INF/lib/ProvisioningServiceClient.jar" > >> > >> packageName="com.myco.nps.regui.provisioning.client" > >> serviceName="ProvisioningService" > >> > >> > >> Then you can do this on the command line: > >> > >> $ ant > >-Dprovisioning.service.wsdl.file=http://99.99.99.99:/Provis > >ioningAccountService/ProvisioningAccountService?WSDL > >> > >> The task that sets provisioning.service.wsdl.file will be > >> overridden by the command line setting. > >> > >> On Wed, Feb 18, 2009 at 12:17 PM, > wrote: > >> > Hi, > >> > > >> > I'm uisng Ant 1.6. I have this target ... > >> > > >> > > >> > >> > > >wsdl="${basedir}/wsdl_files/ProvisioningService.wsdl" > >> > > >destFile="${deployment}/APP-INF/lib/ProvisioningServiceClient.jar" > >> > > >packageName="com.myco.nps.regui.provisioning.client" > >> > > >serviceName="ProvisioningService" > >> >classpath="${java.class.path}" > >> >> > >> > > >> > > >> > > >> > > >> > > >> > > >> > For the property, > >'wsdl="${basedir}/wsdl_files/ProvisioningService.wsdl"', I > >would prefer to read this property out of a properties file I > >have, which has the line ... > >> > > >> > > >PROVISIONING_SERVICE_WSDL_URL=http://99.99.99.99:/Provision > >ingAccountService/ProvisioningAccountService?WSDL > >> > > >> > > >> > How can I tell ant to get the value from there? > >> > > >> > Thanks, - Dave > >> > > >> > > >- > >> > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > >> > For additional commands, e-mail: user-h...@ant.apache.org > >> > > >> > > >> > >> > >> > >> -- > >> -- > >> David Weintraub > >> qazw...@gmail.com > >> > >> > >- > >> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > >> For additional commands, e-mail: user-h...@ant.apache.org > >> > >> > > > >
Re: AW: Reading a property from a file
Perfect! Thanks so much, - Dave > ---Original Message--- > From: Haiqi Wei > Subject: Re: AW: Reading a property from a file > Sent: Feb 19 '09 16:45 > > Add to your build.xml assuming your file.properties is at ${basedir} > > > Then in your target do > wsdl=${PROVISIONING_SERVICE_WSDL_URL} > > > On Thu, Feb 19, 2009 at 10:00 AM, wrote: > > > Again, I really appreciate all the advice I'm getting, but being so > > inexperienced with Ant, I'm still missing the solution. > > > > The properties file I refer to is not in any way related to my Ant tasks. > > But it does contain a URL I would like to use in my Ant script, so I can > > keep that URL in one place. > > > > So what are the commands/XML to extract the key in the following key-value > > pair ... > > > > PROVISIONING_SERVICE_WSDL_URL= > > > http://99.99.99.99:/ProvisioningAccountService/ProvisioningAccountService?WSDL > > > > in my "file.properties" file that will allow me to plug in that URL into > > the "wsdl" attribute of my "" task? > > > > Thanks, - Dave > > > > > > > > > ---Original Message--- > > > From: jan.mate...@rzf.fin-nrw.de > > > Subject: AW: Reading a property from a file > > > Sent: Feb 19 '09 06:16 > > > > > > is a task as all others, therefore you can use that > > everywhere. If your properties file contains 'just' properties for that > > generation, placing the task just in front of the is a good > > idea. > > > Usually you have a build.properties with all properties for the build, > > like java source directory, javac target, etc. Then a common place is > > directly under . > > > > > > > > > Jan > > > > > > > > > >-Ursprüngliche Nachricht- > > > >Von: dave.alvar...@remanresource.com > > > >[mailto:dave.alvar...@remanresource.com] > > > >Gesendet: Mittwoch, 18. Februar 2009 19:26 > > > >An: Ant Users List > > > >Betreff: Re: Reading a property from a file > > > > > > > >Thanks for your reply. Regarding the property file directive, > > > >"", where are you actually loading the property > > > >"PROVISIONING_SERVICE_WSDL_URL" from the file and assigning it > > > >to a variable? > > > > > > > > - Dave > > > > > > > >> ---Original Message--- > > > >> From: David Weintraub > > > >> Subject: Re: Reading a property from a file > > > >> Sent: Feb 18 '09 18:10 > > > >> > > > >> What about ? > > > >> > > > >> What I normally do is something like this: > > > >> > > > >> > > >> value="${basedir}/default_property_file_name.properties"/> > > > >> > > > >> > > > >> That way, I can put the property file name on the command line, or > > > >> read in the default property file if it exists. > > > >> > > > >> You can also override any property setting in your > > > >build.xml by simply > > > >> placing it on the command line: > > > >> > > > >> So do this: > > > >> > > > >> > > > >> > > >> > > > >name="${basedir}/wsdl_files/ProvisioningService.wsdl > > > >> > > >> > > > >wsdl="${provisioning.service.wsdl.file}" > > > >> > > > >> destFile="${deployment}/APP-INF/lib/ProvisioningServiceClient.jar" > > > >> > > > >> packageName="com.myco.nps.regui.provisioning.client" > > > >> serviceName="ProvisioningService" > > > >> > > > >> > > > >> Then you can do this on the command line: > > > >> > > > >> $ ant > > > >-Dprovisioning.service.wsdl.file=http://99.99.99.99:/Provis > > > >ioningAccountService/ProvisioningAccountService?WSDL > > > >> > > > >> The task that sets provisioning.service.wsdl.file will be > > > >> overridden by the command line setting. > > > >> > > > >> On Wed, Feb 18, 2009 at 12:17 PM, > > > wrote: > > > >> > Hi, > > > >> > > > > >> > I'm uisng Ant 1.6. I have this target ... > > > >> > > > > >> > > > > >> > > > >> > > > > >wsdl="${basedir}/wsdl_files/ProvisioningService.wsdl" > > > >> > > > > >destFile="${deployment}/APP-INF/lib/ProvisioningServiceClient.jar" > > > >> > > > > >packageName="com.myco.nps.regui.provisioning.client" > > > >> > > > > >serviceName="ProvisioningService" > > > >> >classpath="${java.class.path}" > > > >> >> > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > For the property, > > > >'wsdl="${basedir}/wsdl_files/ProvisioningService.wsdl"', I > > > >would prefer to read this property out of a properties file I > > > >have, which has the line ... > > > >> > > > > >> > > > > >PROVISIONING_SERVICE_WSDL_URL=http://99.99.99.99:/Provision > > > >ingAccountService/ProvisioningAcc
Way to simplify this task?
Hi, Perhaps this is more appropriate for the FindBugs forum, but I've found good answers here. I'm using Ant 1.6 with FindBugs 1.3.7. I want to tell FindBugs to include all the JARS within a certain directory for its classpath, but this isn't working ... I get the error [FindBugs] The following errors occurred during analysis: [FindBugs] Cannot open codebase filesystem:C:\Temp\Routing_Engine\ui\web\WEB-INF\lib\*.jar [FindBugs] java.util.zip.ZipException: Error opening C:\Temp\Routing_Engine\ui\web\WEB-INF\lib\*.jar [FindBugs] At edu.umd.cs.findbugs.classfile.impl.ZipFileCodeBase.(ZipFileCodeBase.java:56) [FindBugs] At edu.umd.cs.findbugs.classfile.impl.ZipCodeBaseFactory.makeZipCodeBase(ZipCodeBaseFactory.java:40) [FindBugs] At edu.umd.cs.findbugs.classfile.impl.ClassFactory.createFilesystemCodeBase(ClassFactory.java:96) [FindBugs] At edu.umd.cs.findbugs.classfile.impl.FilesystemCodeBaseLocator.openCodeBase(FilesystemCodeBaseLocator.java:75) [FindBugs] At edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.processWorkList(ClassPathBuilder.java:560) [FindBugs] At edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.build(ClassPathBuilder.java:195) [FindBugs] At edu.umd.cs.findbugs.FindBugs2.buildClassPath(FindBugs2.java:626) [FindBugs] At edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:184) [FindBugs] At edu.umd.cs.findbugs.FindBugs.runMain(FindBugs.java:323) [FindBugs] At edu.umd.cs.findbugs.FindBugs2.main(FindBugs2.java:1069) Any ideas what I'm doing wrong? Do I have to list each JAR file? - Dave - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Re: Way to simplify this task?
Hi, I wanted to post a follow-up on what I changed based off everyone's feedback. Still haven't got it to find the JARs. Any additional troubleshooting tips are appreciated. The output is ... [FindBugs] Running FindBugs... [FindBugs] The following classes needed for analysis were missing: [FindBugs] javax.xml.rpc.Service [FindBugs] weblogic.wsee.jaxrpc.StubImpl [FindBugs] weblogic.wsee.jaxrpc.ServiceImpl [FindBugs] javax.servlet.http.HttpServlet [FindBugs] org.apache.struts.action.Action [FindBugs] org.apache.struts.action.ActionForm [FindBugs] javax.xml.rpc.Stub [FindBugs] weblogic.wsee.wsdl.WsdlPort [FindBugs] weblogic.wsee.tools.clientgen.stubgen.StubSerialWrapper [FindBugs] javax.xml.rpc.ServiceException [FindBugs] org.apache.struts.action.ActionForward [FindBugs] weblogic.wsee.connection.transport.TransportInfo [FindBugs] org.apache.struts.action.ActionMessage [FindBugs] org.apache.log4j.PropertyConfigurator [FindBugs] javax.servlet.ServletException [FindBugs] org.apache.struts.action.ActionMapping [FindBugs] javax.xml.rpc.soap.SOAPFaultException [FindBugs] javax.servlet.http.HttpServletRequest [FindBugs] com.bea.xbean.util.XsTypeConverter [FindBugs] org.apache.log4j.Logger [FindBugs] javax.xml.rpc.JAXRPCException [FindBugs] weblogic.wsee.connection.transport.http.HttpTransportInfo [FindBugs] javax.servlet.http.HttpServletResponse [FindBugs] org.apache.struts.action.ActionErrors [FindBugs] weblogic.wsee.context.ContextNotFoundException [FindBugs] weblogic.wsee.async.AsyncPreCallContext [FindBugs] Warnings generated: 20 [FindBugs] Missing classes: 26 [FindBugs] Classes needed for analysis were missing > ---Original Message--- > From: sflo...@nc.rr.com > Subject: Re: Way to simplify this task? > Sent: Feb 21 '09 00:13 > > Yeah...been a while since I did this... > > I think, it is literally assuming a file entitled *.jar below :( > > What does your taskdef look like for Find Bugs? I use something like this: > > "edu.umd.cs.findbugs.anttask.FindBugsTask" uri = > "http://findbugs.sourceforge.net" description = "Needed to use FindBugs."> > > > > > > Not sure this will help, but maybe you want to use a similar construct, but > for fileset do something like: > > > > Of course, adjust taskdef based on what you are currently doing ;) > > dave.alvar...@remanresource.com wrote: > > Hi, > > > > Perhaps this is more appropriate for the FindBugs forum, but I've found > good answers here. I'm using Ant 1.6 with FindBugs 1.3.7. I want to tell > FindBugs to include all the JARS within a certain directory for its > classpath, but this isn't working ... > > > > > > outputFile="${findBugsOutputFile}" jvmargs="${jvmargs}" projectName="regui" > > > > > > > > > > > > > > > I get the error > > > > [FindBugs] The following errors occurred during analysis: > > [FindBugs] Cannot open codebase > filesystem:C:\Temp\Routing_Engine\ui\web\WEB-INF\lib\*.jar > > [FindBugs] java.util.zip.ZipException: Error opening > C:\Temp\Routing_Engine\ui\web\WEB-INF\lib\*.jar > > [FindBugs] At > edu.umd.cs.findbugs.classfile.impl.ZipFileCodeBase.(ZipFileCodeBase.java:56) > > [FindBugs] At > edu.umd.cs.findbugs.classfile.impl.ZipCodeBaseFactory.makeZipCodeBase(ZipCodeBaseFactory.java:40) > > [FindBugs] At > edu.umd.cs.findbugs.classfile.impl.ClassFactory.createFilesystemCodeBase(ClassFactory.java:96) > > [FindBugs] At > edu.umd.cs.findbugs.classfile.impl.FilesystemCodeBaseLocator.openCodeBase(FilesystemCodeBaseLocator.java:75) > > [FindBugs] At > edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.processWorkList(ClassPathBuilder.java:560) > > [FindBugs] At > edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.build(ClassPathBuilder.java:195) > > [FindBugs] At > edu.umd.cs.findbugs.FindBugs2.buildClassPath(FindBugs2.java:626) > > [FindBugs] At > edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:184) > > [FindBugs] At > edu.umd.cs.findbugs.FindBugs.runMain(FindBugs.java:323) > > [FindBugs] At > edu.umd.cs.findbugs.FindBugs2.main(FindBugs2.java:1069) > > > > Any ideas what I'm doing wrong? Do I have to list each JAR file? - Dave > > > > - > > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > > For additional commands, e-mail: user-h...@ant.apache.org > > > > - To unsubscri
Excluding some directories
Hi, I'm using Ant 1.6. I have this task ... I want to modify my clause such that it includes all .java files in that directory except for java files within com/myco/ssml and com/myco/provisioning . How would I change the clause to exclude these two directories? Thanks, - Dave - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Re: Excluding some directories
Hi Brian, I put in the directive much as you have it ... But the task is still examining files in the directories I want to exclude . Is this a checkstyle task problem? Below are some of the warnings I get. Thanks, - Dave [checkstyle] C:\Temp\Routing_Engine\ui\src\com\myco\ssml\account\types\Account.java:24:49: warning: 'billingRegion' hides a field. [checkstyle] C:\Temp\Routing_Engine\ui\src\com\myco\ssml\account\types\Account.java:34:52: warning: 'cdvPhoneNumber' hides a field. [checkstyle] C:\Temp\Routing_Engine\ui\src\com\myco\ssml\account\types\Account.java:44:61: warning: 'house' hides a field. [checkstyle] C:\Temp\Routing_Engine\ui\src\com\myco\ssml\account\types\Account.java:54:40: warning: 'name' hides a field. [checkstyle] C:\Temp\Routing_Engine\ui\src\com\myco\ssml\account\types\Account.java:64:42: warning: 'status' hides a field. > ---Original Message--- > From: Brian Stephenson > Subject: Re: Excluding some directories > Sent: Feb 24 '09 16:26 > > Try re-formatting your checkstyle fileset attribute to look something > like this: > > > > > > > > > Brian > > On Feb 24, 2009, at 10:29 AM, wrote: > > > Hi, > > > > I'm using Ant 1.6. I have this task ... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I want to modify my clause such that it includes all .java > > files in that directory except for java files within com/myco/ssml > > and com/myco/provisioning . How would I change the clause to > > exclude these two directories? > > > > Thanks, - Dave > > > > - > > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > > For additional commands, e-mail: user-h...@ant.apache.org > > > > > > - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Re: Excluding some directories
Hi, Thanks for this input. I changed my directive per your suggestion ... but checkstyle is still examining files I don't want it to. The "**" means a max of two levels deep? I got the same number of messages as before (some included below). Anyway to get the build to crash if something I entered doesn't exist or is invalid? - Dave [checkstyle] C:\Temp\Routing_Engine\ui\src\com\myco\ssml\account\types\Account.java:64:42: warning: 'status' hides a field. [checkstyle] C:\Temp\Routing_Engine\ui\src\com\myco\ssml\account\types\Account.java:74:42: warning: 'source' hides a field. [checkstyle] C:\Temp\Routing_Engine\ui\src\com\myco\ssml\account\types\Account.java:84:46: warning: 'reasonCode' hides a field. [checkstyle] C:\Temp\Routing_Engine\ui\src\com\myco\ssml\account\types\Device.java:14:46: warning: 'autoDiscSN' hides a field. > ---Original Message--- > From: Brian Stephenson > Subject: Re: Excluding some directories > Sent: Feb 24 '09 18:14 > > I think the problem is you only told your fileset to exclude java > files in the /com/myco/ssml directory itself, not in directories below > it in the tree. You need to do that. I haven't actually run this in a > test setting, so it may need a little syntax goosing, but here goes: > > Since you only have one "include" setting in your fileset, you can > move it up to be a direct attribute of the fileset element, then you > can enter a sub-element of the fileset element called "depth", which > tells fileset how many directories deep to go from your base directory > (here it is "${srcDir}/com") to match your fileset includes and > excludes. The fileset code SHOULD (I believe) look like this: > > > > > > > > I put two as the max depth, as the files still being examined by > checkstyle were two deep from the base directory of the fileset, as > described in your error messages. If you have deeper directories, > adjust that number as needed. > > Brian > > On Feb 24, 2009, at 12:00 PM, wrote: > > > Hi Brian, > > > > I put in the directive much as you have it ... > > > > > > > > > > > > > > > > > > /> > > name="${srcDir}/com/myco/regui/provisioning/ > > *.java" /> > > > > > > > > > > > > > > > > > > But the task is still examining files in the directories I want to > > exclude . Is this a checkstyle task problem? Below are some of the > > warnings I get. Thanks, - Dave > > > > > > [checkstyle] C:\Temp\Routing_Engine\ui\src\com\myco\ssml\account > > \types\Account.java:24:49: warning: 'billingRegion' hides a field. > > [checkstyle] C:\Temp\Routing_Engine\ui\src\com\myco\ssml\account > > \types\Account.java:34:52: warning: 'cdvPhoneNumber' hides a field. > > [checkstyle] C:\Temp\Routing_Engine\ui\src\com\myco\ssml\account > > \types\Account.java:44:61: warning: 'house' hides a field. > > [checkstyle] C:\Temp\Routing_Engine\ui\src\com\myco\ssml\account > > \types\Account.java:54:40: warning: 'name' hides a field. > > [checkstyle] C:\Temp\Routing_Engine\ui\src\com\myco\ssml\account > > \types\Account.java:64:42: warning: 'status' hides a field. > > > > > > > > > > > > > >> ---Original Message--- > >> From: Brian Stephenson > >> Subject: Re: Excluding some directories > >> Sent: Feb 24 '09 16:26 > >> > >> Try re-formatting your checkstyle fileset attribute to look something > >> like this: > >> > >> > >> > >> > >> > >> > >> > >> > >> Brian > >> > >> On Feb 24, 2009, at 10:29 AM, > >> wrote: > >> > >>> Hi, > >>> > >>> I'm using Ant 1.6. I have this task ... > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> I want to modify my clause such that it includes all .java > >>> files in that directory except for java files within com/myco/ssml > >>> and com/myco/provisioning . How would I change the clause to > >>> exclude these two directories? > >>> > >>> Thanks, - Dave > >>> > >>> - > >>> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > >>> For additional commands, e-mail: user-h...@ant.apache.org > >>> > >> > >> > >> > >> > > > > - > > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > > For additional commands, e-mail: user-h...@ant.apache.org > > > > > > --
How to get varaibles recognized by this task
Hi, I have the below target ... print 'Calling the script ...' connect(sys.argv[1],sys.argv[2],sys.argv[3]) shutdownCluster("my_cluster_1") undeploy("RoutingEngine#v1.0") removeApplication("RoutingEngine#v1.0") deploy('RoutingEngine#v1.0', '/opt/wars/routing_engine_wars/RoutingEngine.war', targets='my_cluster_1' ) startCluster("my_cluster_1") disconnect() Problem is, if I try and put in variables within the "
Re: How to get varaibles recognized by this task
Thanks for your reply. I'm unfamiliar with some of the terms you are mentioning below. Could you give a code example? - Dave > ---Original Message--- > From: Scot P. Floess > Subject: Re: How to get varaibles recognized by this task > Sent: Mar 05 '09 17:24 > > > I know, at least using scriptdef, I was able to make calls out to > attributes.get ( [attribute-name] ) using beanshell - of course assuming > my scriptdef contained an element > > On Thu, 5 Mar 2009, dave.alvar...@remanresource.com wrote: > > > Hi, > > > > I have the below target ... > > > > > > classname="weblogic.ant.taskdefs.management.WLSTTask" /> > > > executeScriptBeforeFile="false" > > fileName="./wls_scripts/wls922_definitions.py" > > arguments="${wlsuser} ${wlspwd} ${wlshosturl} " > > > > > > > print 'Calling the script ...' > > connect(sys.argv[1],sys.argv[2],sys.argv[3]) > > shutdownCluster("my_cluster_1") > > undeploy("RoutingEngine#v1.0") > > removeApplication("RoutingEngine#v1.0") > > deploy('RoutingEngine#v1.0', > '/opt/wars/routing_engine_wars/RoutingEngine.war', targets='my_cluster_1' ) > > startCluster("my_cluster_1") > > disconnect() > > > > > > > > > > Problem is, if I try and put in variables within the "
Ant task to pre-compile JSPs
Hi, What is the Ant task to pre-compile JSPs into class/java files? I'm using Ant 1.6, WebLogic 9.2.2 with Java 1.5. Thanks, - Dave - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Re: AW: Ant task to pre-compile JSPs
I'm still missing something. The reason I want to get pre-compiled Java classes is so that I can instrument those classes for the purposes of running a tests coverage report (I'm using Cobertura). It would be great to have these files after I do my Ant build so then i can run my MockStrutsTestCase unit tests. Could you provide some additional info about what the FAQ answer means and how I can apply it to my situation? Thanks, - > ---Original Message--- > From: jan.mate...@rzf.fin-nrw.de > Subject: AW: Ant task to pre-compile JSPs > Sent: Apr 07 '09 06:36 > > >What is the Ant task to pre-compile JSPs into class/java > >files? I'm using Ant 1.6, WebLogic 9.2.2 with Java 1.5. > > This is an often asked question, so I added a FAQ entry > http://ant.apache.org/faq.html#precompile-jsps > > "Ant has a built in optional task which was intended for that. > But this task is deprecated. Here the alternative suggested by the > manual: > > Instead of relying on container specific JSP-compilers we suggest > deploying the raw files (*.jsp) and use the container build-in > functions: after deploying run a test suite (e.g. with Cactus or > HttpUnit) against the deployed web application. So you'll get then test > result and the compiled JSPs." > > > Jan > > p.s. > The website need a little bit time for being updated. > > - > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > > - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Execution classpath question for taskdef
Hi, I'm using Ant 1.8. I have created a custom task, but I need to include a jar file in the classpath when this task is exected. How do I include such a jar file? I'm using Ant 1.8. Here is the definition of the task ... I have discovered that the "classpath" and "claspathref" elements that are part of the taskdef are not used during run time, so I am grateful for anyone to tell me how to include classes when the task is actually executed. - Dave - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Re: Execution classpath question for taskdef
Let me ask this clarification question before answering yours ... 1. The taskdef "classpath" attribute is NOT what is used when the taskdef is actually executed. Correct? The output of what I get from running my custom task is below. Note that the NoClassDefFoundError is complaining about a class that is in the "/opt/LVCVA/lvcva_tomcat/sandboxes/lvcva-dev-build/common/selenium-server.jar" jar file, and I have verified that this file exists. Selenium4: [echo] selenium paths ... [echo] /opt/LVCVA/lvcva_tomcat/sandboxes/lvcva-dev-build/common/selenium-server.jar [echo] /opt/LVCVA/lvcva_tomcat/sandboxes/lvcva-dev-build/common/CmSeleniumUtils.jar [SeleniumHTMLClient] added test suite. BUILD FAILED /opt/LVCVA/lvcva_tomcat/build.xml:746: java.lang.NoClassDefFoundError: com/thoughtworks/selenium/SeleniumException at com.criticalmass.util.ant.SeleniumRunner.execute(SeleniumRunner.java:158) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397) at org.apache.tools.ant.Project.executeTarget(Project.java:1366) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1249) at org.apache.tools.ant.Main.runBuild(Main.java:801) at org.apache.tools.ant.Main.startAnt(Main.java:218) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) Caused by: java.lang.ClassNotFoundException: com.thoughtworks.selenium.SeleniumException at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) ... 18 more So my question remains, how do I set the classpath for when my custom task "SeleniumHTMLClient" is actually executed? Thanks, - Dave > ---Original Message--- > From: Michael Ludwig > To: user@ant.apache.org > Subject: Re: Execution classpath question for taskdef > Sent: Jan 19 '11 13:54 > > dave.alvar...@cartridgeorder.com schrieb am 19.01.2011 um 13:30 (-0600): > > > I have discovered that the "classpath" and "claspathref" elements that > > are part of the taskdef are not used during run time > > Are you sure? How did you discover that? > > There was another thread today where the same issue arose: > > Mail task with mail.jar & activation.jar out of lib folder > > r L 19.01.11 10:31+0100 Patrick Martin57 Mail task […] > L 19.01.11 11:19+0100 Patrick Martin87 ├─> > F 19.01.11 13:51+0100 Michael Ludwig75 └─> > > -- > Michael Ludwig > > - > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > > - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Re: Execution classpath question for taskdef
Thanks for this recommendation. A couple of follow up questions ... 1 If I add the classloader task to my custom task, does that classloader take precedence over the classes loaded by ${ANT_HOME}/lib ? 2. How do I add the classloader task to my custom task? My custom task resembles ... Thanks, - Dave > ---Original Message--- > From: Antoine Levy-Lambert > To: Ant Users List > Subject: Re: Execution classpath question for taskdef > Sent: Jan 19 '11 17:58 > > On 1/19/11 2:54 PM, Michael Ludwig wrote: > > > > There was another thread today where the same issue arose: > > > > Mail task with mail.jar & activation.jar out of lib folder > > > > r L 19.01.11 10:31+0100 Patrick Martin57 Mail task […] > > L 19.01.11 11:19+0100 Patrick Martin87 ├─> > > F 19.01.11 13:51+0100 Michael Ludwig75 └─> > The classpath attribute or nested element of taskdef works but cannot > solve the case of some classes loaded by factories of the JVM (JDBC > drivers, mail.jar, activation.jar). > These classes have to be either in the ant startup environment. See > http://ant.apache.org/manual/running.html#libs > > Or the classloader task must be used to add the jars to the classloader > so that ant classes can access them. > > As Peter Reilly wrote the URL from which this classloader task can be > downloaded is : > > http://enitsys.sourceforge.net/ant-classloadertask/ > > > > Regards, > > Antoine > > > > - > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > > - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Possible to dynamically reference a property?
Hi, I'm using Ant 1.8. I load a properties file that loads define these properties ... dev.baseurl=http://devurl qa.baseurl=http://qaurl approval.baseurl=http://approvalurl staging.baseurl=http://stagingurl prod.baseurl=http://produrl Then I pass in this command line argument to my script "-Denv=...". So, in my ant script, how do I dynamically access a property using the ${env} param? For example, if "-Denv=dev" is passed in to the command line, what is a generic way of accessing the property, "dev.baseurl"? Thanks, - Dave - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Re: Possible to dynamically reference a property?
Thanks, Dominique. The nested properties (props) task seems like it will do the job. However, do you know where to download this thing? The links don't seem to have anything http://ant.apache.org/manual/properties.html http://ant.apache.org/faq.html#propertyvalue-as-name-for-property - Dave > ---Original Message--- > From: Dominique Devienne > To: Ant Users List , dave.alvar...@cartridgeorder.com > Subject: Re: Possible to dynamically reference a property? > Sent: Jan 25 '11 15:39 > > On Tue, Jan 25, 2011 at 3:32 PM, wrote: > > Then I pass in this command line argument to my script "-Denv=...". So, > in my ant script, how do I dynamically access a property using the ${env} > param? For example, if "-Denv=dev" is passed in to the command line, what is > a generic way of accessing the property, "dev.baseurl"? > > See http://ant.apache.org/faq.html#propertyvalue-as-name-for-property > > Thanks, --DD > > - > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > > - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Re: Possible to dynamically reference a property?
ON the doc it mentions "external" to ANt ... With the 'props' antlib (external, but also from Ant) you could do the dereferencing with ${${anotherprop} - not just in the property task - instead everywhere in your buildfile (after registering the required property helper). ${${var}} = foo.value So doesn't that mean it would NOT be part of the normal distrib? - Dave > ---Original Message--- > From: Dominique Devienne > To: Ant Users List , dave.alvar...@cartridgeorder.com > Subject: Re: Possible to dynamically reference a property? > Sent: Jan 25 '11 16:08 > > On Tue, Jan 25, 2011 at 3:58 PM, wrote: > > Thanks, Dominique. The nested properties (props) task seems like it will > do the job. However, do you know where to download this thing? The links > don't seem to have anything > > > > http://ant.apache.org/manual/properties.html > > http://ant.apache.org/faq.html#propertyvalue-as-name-for-property > > props is not a task, but a PropertyHelper extension. I suspect it's > part of the normal Ant distrib, so no need to download anything, but > I've never used it myself. You could try adding the declaration the > FAQ shows to enable it in your own build file and see if it works. > --DD > - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Re: Possible to dynamically reference a property?
Cool. I went the macrodef route and everything worked - Dave > ---Original Message--- > From: Dominique Devienne > To: Ant Users List , dave.alvar...@cartridgeorder.com > Subject: Re: Possible to dynamically reference a property? > Sent: Jan 25 '11 16:16 > > On Tue, Jan 25, 2011 at 4:10 PM, wrote: > > ON the doc it mentions "external" to ANt ... [...] > > So doesn't that mean it would NOT be part of the normal distrib? - Dave > > You might be right. Sorry, can't help more on this particular topic, > as I mentioned I've never done it myself. > > The easiest is to define the macro to emulate the AntContrib task. > That's pure Ant, no dependencies. Or use the file="${env}.properties" /> idiom I mentioned. --DD > > - > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > > - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org