Junit Task dies with NullPointerException

2010-06-06 Thread Steven Harms
don't see that it's a particular line of my class that's setting off the stack-bomb, so I'm not so sure on how to debug this. Any advice would be appreciated. Steven - To unsubscribe, e-mail: user-unsub

[RESOLVED] Re: Trying to get Ant + JUnit working peaceably

2010-06-06 Thread Steven Harms
After that I was able to get the junit task to function. On Sat, Jun 5, 2010 at 6:13 PM, Steven Harms wrote: > Shawn, > > Thanks for your suggestions and for your prompt reply. > >> The junit jar is responsible for junit itself, NOT the ability to run junit >> from ant

Re: Trying to get Ant + JUnit working peaceably

2010-06-05 Thread Steven Harms
lly to do work-based projects. Should I try to re-build and re-configure the source? Steven - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org

Trying to get Ant + JUnit working peaceably

2010-06-05 Thread Steven Harms
e to my platform. So, I'm stuck. Can anyone help me get around this low point. I'm excited to start programming Java, but I've wound up programming Ant most of the day -- not a bad thing, just not the shiny app I had dreamt of :)

how to preserve comments and layout of the original property file when using PropertyFile task?

2010-01-29 Thread Steven
hi, accroding to the ant manual, i use PropertyFile task to keep the last dailybuild time. but the layout and comments in the original property file were lost. when i set the "jdkproperties" paramter, *BUILD FAILED: propertyfile doesn't support the "jdkproperties" attribute.* any help is appre

Re: I can't use the task

2008-08-14 Thread Steven Guitar
a property is set. Therefore the is what he probably ought to use :) On Thu, 14 Aug 2008, Steven Guitar wrote: you should try this... ${myprop} this is a silly example, but the idea is that if and only if the property exists, the given target will run. unless is used in the

Re: I can't use the task

2008-08-14 Thread Steven Guitar
you should try this... ${myprop} this is a silly example, but the idea is that if and only if the property exists, the given target will run. unless is used in the opposite manner. you could also do straight if conditional checking with: do stu

Re: how can tell if a property is set?

2008-08-14 Thread Steven Guitar
Guy, something else i have started using is if i plan to call a target if a property is set, i put the if/unless attributes on that target like so: ${myprop} this is a silly example, but the idea is that if and only if the property exists, the given target will run. unless is use

Re: How to read an XML file and extract values for the attributes using ANT script

2008-07-25 Thread Steven Guitar
FYI. You could read the file into a property and use regular expressions. Since it's XML the patterns would not be too difficult Sent from my iPhone On Jul 25, 2008, at 4:36 AM, Alpesh Vesuwala <[EMAIL PROTECTED]> wrote: Hello Friends, I have an XML file to read from it and extract valu

Re: Checking existence of a set of files

2008-07-21 Thread Steven Guitar
I'll also add that foreach takes a list of things seperated by commas ( or any delimmiter) Sent from my iPhone On Jul 21, 2008, at 6:45 AM, André Pilz <[EMAIL PROTECTED]> wrote: Hello, in old days I wrote a target which checks for the file, and then call this target with antcall for singl

Re: How do I call antcall once per line of file using line value as parameter?

2008-07-02 Thread Steven Guitar
i have used regular expressions to either take multilines and format them to one line with comma delimited entries for the ant contrib foreach On Jul 2, 2008, at 12:54 AM, Roman Kennke wrote: Hi, The foreach task from ant-contrib could help: http://ant-contrib.sourceforge.net/tasks/tasks

Re: sourcepath files get implicitly compiled and end up in archive

2008-06-27 Thread Steven Guitar
from my iPhone On Jun 27, 2008, at 12:11 PM, Dominique Devienne <[EMAIL PROTECTED]> wrote: On Fri, Jun 27, 2008 at 11:11 AM, Steven Guitar <[EMAIL PROTECTED]> wrote: I am working on some build scripts for projects that have a dynamic listing of dependancies. when i try to

sourcepath files get implicitly compiled and end up in archive

2008-06-27 Thread Steven Guitar
I am working on some build scripts for projects that have a dynamic listing of dependancies. when i try to compile project A that depends on project B, there is not a way for me to know which project to compile first (short of having the developer keep track of it in a properties file) - so

Reading XML

2008-06-02 Thread Steven Guitar
Is it possible for ant to read an XML file and package binaries according to what the XML file dictates at run time? Or would i have to create a custom task for that? Sent from my iPhone - To unsubscribe, e-mail: [EMAIL PROT

ant reading deployment descriptor

2008-05-30 Thread Steven Guitar
i have a web app that is contained in a .war that is packaged under an EAR module. i would like to read the EARs deployment descriptor to build the war and all the project utility jars contained in the EAR as well... is this possible? can i read and interpret the application.xml file at t

Re: headless build vs. eclipse build

2008-02-07 Thread Steven Guitar
ld.xml and then use that build.xml at command line and keep the JRE_HOME and JAVA_HOME and ANT_HOME in synch between the IDE and command line as even point release deltas can cause these sorts of discrepancies Martin-- - Original Message - From: "Steven Guitar" <[EMAIL PRO

Re: headless build vs. eclipse build

2008-02-07 Thread Steven Guitar
synch between the IDE and command line as even point release deltas can cause these sorts of discrepancies Martin-- - Original Message - From: "Steven Guitar" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Wednesday, February 06, 2008 2:57 PM Subject: Re: head

Re: headless build vs. eclipse build

2008-02-06 Thread Steven Guitar
- Original Message - From: "Steven Guitar" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Wednesday, February 06, 2008 2:57 PM Subject: Re: headless build vs. eclipse build Martin, actually in eclipse(WSAD actually) its pointing to the bundled jre's that c

Re: headless build vs. eclipse build

2008-02-06 Thread Steven Guitar
e In Eclipse goto Window Preferences Java Installed JREs Execution Environment are you perhaps using a JRE different than the one ANT uses from command line (check env var JRE_HOME for ANTs default JRE) ? Martin- - Original Message - From: "Steven Guitar" <[EMAIL PRO

headless build vs. eclipse build

2008-02-06 Thread Steven Guitar
Hey guys, i have written a headless build for a jar file that we use for our framework to distribute to other developers. the jar file is given to web developers who deploy their web apps to websphere app server, and the jar file created from ant works fine. when you start the server up w

Define the logger in a properties file?

2006-05-10 Thread Steven Anderson
I'd like to use org.apache.tools.ant.XmlLogger for all my builds, so I'd like to have it in my build.properties file rather than having to call it as a command-line option. I couldn't find a property for doing this, though. Is it possible to define the logger in a properties file/

RE: UTF-8 text in a propertyfile?

2005-12-29 Thread Steven Anderson
UTF-8 text in a propertyfile? Steven Anderson wrote: >I'm trying to pass a string of UTF-8 (Japanese) characters via a >property to an xslt task in ant. > >If I set the property in the buildfile, with encoding="UTF-8", >everything works fine. If I specify the prop

UTF-8 text in a propertyfile?

2005-12-28 Thread Steven Anderson
I'm trying to pass a string of UTF-8 (Japanese) characters via a property to an xslt task in ant. If I set the property in the buildfile, with encoding="UTF-8", everything works fine. If I specify the property on the command-line (in Windows XP), or via a UTF-8 encoded property file, the charac

ant 1.6.x libraries

2005-01-26 Thread Melzer, Steven
all, i am trying to move from ant 1.5.x on Windows to ant 1.6.x on Unix and i am having a hard time understanding the proper way to handle external libraries. i started with a clean version of redhat 9. it has ant 1.5.x pre-installed. i used the jpackage and upgraded it to 1.6.x (after a trem

RE: Conditionally setting property values

2004-02-06 Thread Steven Scheffler
You can achieve the below by using the ant-contrib package. Go here (http://ant-contrib.sourceforge.net/) to download. Using the task you can express the if/then/else type logic you're looking for. -Original Message- From: Holliday, Donald B. (LNG-CSP) [mailto:[EMAIL PROTECTED] Sent: F