Failed to create task or type?

2008-07-02 Thread dave.alvarado
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

How can I list what files are being compiled?

2008-07-09 Thread dave.alvarado
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 PROTECTE

Compiling JSP files using ANT?

2008-07-10 Thread dave.alvarado
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]

Copying everything except one file

2008-08-06 Thread dave.alvarado
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.propertie

How to restrict what goes into my WEB-INF/lib directory?

2008-08-12 Thread dave.alvarado
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    

Why is everything getting included in my WAR?

2008-08-18 Thread dave.alvarado
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 w

Way to simplify what is in my project class path?

2008-10-01 Thread dave.alvarado
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:

Using ANT for JSF validation

2008-10-07 Thread dave.alvarado
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: [

Conditional depends clause

2008-10-31 Thread dave.alvarado
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

How to figure out what is in my class path?

2008-11-24 Thread dave.alvarado
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, -

Re: How to figure out what is in my class path?

2008-11-24 Thread dave.alvarado
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 under

Re: How to figure out what is in my class path?

2008-11-24 Thread dave.alvarado
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-chec

Re: How to figure out what is in my class path?

2008-11-24 Thread dave.alvarado
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=$TI

NoSuchMethodError when building a task

2008-12-01 Thread dave.alvarado
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_Se

RE: NoSuchMethodError when building a task

2008-12-01 Thread dave.alvarado
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

Re-installed Eclipse, now Ant won't run

2008-12-02 Thread dave.alvarado
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 in

Is this error due to a versioning issue?

2008-12-02 Thread dave.alvarado
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:\

How can I figure out what JUnit test case is failing?

2008-12-03 Thread dave.alvarado
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 ...

Re: AW: How can I figure out what JUnit test case is failing?

2008-12-04 Thread dave.alvarado
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 D

How can I exclude this directory?

2009-01-13 Thread dave.alvarado
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 ...

Using ant to check out only a single file from CVS

2009-02-04 Thread dave.alvarado
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 certa

Making my JAR file include everything

2009-02-04 Thread dave.alvarado
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="${

Re: Making my JAR file include everything

2009-02-04 Thread dave.alvarado
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, >

Reading a property from a file

2009-02-18 Thread dave.alvarado
Hi, I'm uisng Ant 1.6. I have this target ... For the property, 'wsdl="${basedir}/wsdl_files/Pr

Re: Reading a property from a file

2009-02-18 Thread dave.alvarado
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 fro

Re: AW: Reading a property from a file

2009-02-19 Thread dave.alvarado
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 pl

Re: AW: Reading a property from a file

2009-02-19 Thread dave.alvarado
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_

Way to simplify this task?

2009-02-20 Thread dave.alvarado
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 ...

Re: Way to simplify this task?

2009-02-23 Thread dave.alvarado
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.

Excluding some directories

2009-02-24 Thread dave.alvarado
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

Re: Excluding some directories

2009-02-24 Thread dave.alvarado
Hi Brian, I put in the directive much as you have it ...

Re: Excluding some directories

2009-02-24 Thread dave.alvarado
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

How to get varaibles recognized by this task

2009-03-05 Thread dave.alvarado
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'

Re: How to get varaibles recognized by this task

2009-03-05 Thread dave.alvarado
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

Ant task to pre-compile JSPs

2009-04-06 Thread dave.alvarado
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: u

Re: AW: Ant task to pre-compile JSPs

2009-04-08 Thread dave.alvarado
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 MockStrutsTest

Execution classpath question for taskdef

2011-01-19 Thread dave.alvarado
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 ...

Re: Execution classpath question for taskdef

2011-01-19 Thread dave.alvarado
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 c

Re: Execution classpath question for taskdef

2011-01-20 Thread dave.alvarado
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 ...

Possible to dynamically reference a property?

2011-01-25 Thread dave.alvarado
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 "-De

Re: Possible to dynamically reference a property?

2011-01-25 Thread dave.alvarado
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

Re: Possible to dynamically reference a property?

2011-01-25 Thread dave.alvarado
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}} = fo

Re: Possible to dynamically reference a property?

2011-01-25 Thread dave.alvarado
Cool. I went the macrodef route and everything worked - Dave > ---Original Message--- > From: Dominique Devienne > To: Ant Users List , dave.alvar...