Are you wanting system properties? That's built into Java...
Look at System.getProperties()
Or
http://java.sun.com/docs/books/tutorial/essential/environment/sysprop.html
I think you are after: |user.dir|
Denis Bessmertnyj wrote:
Does ant have predefined system properties?
For example, I wa
Hi,
Ninju Bohra wrote:
Have you looked at the task
(http://ant.apache.org/manual/CoreTasks/tstamp.html)
Maybe something like:
i tried that on Win2000, with jdk 1.5.0_11 ant 1.6.5
Antversion == ${ant.version}
Today == ${TODAY}
$
I found an answer to my question: use the concat task with a nested fileset.
Example:
Josh Lubell wrote:
Is there an easy way to cause output from an Ant task that is normally
written to a file to be written to the console instead? Specifically I
would like XML transformation result
Is there an easy way to cause output from an Ant task that is normally
written to a file to be written to the console instead? Specifically I
would like XML transformation result of an xslt task to appear in the
Ant output rather than in an output file.
Thank you,
Josh
--
Josh Lubell, NIST
Ma
I have such things in my build.xml,
"
",
which is supposed to do a jsp precompile work. ( it is suggested by the tomcat
5.5). And I thought when I run "ant jspc", it will include the classpath value
that I have set for "j
I can't recall when AC last had a release; you might
have to build from the current source, wherein
can handle any type that returns an Iterator.
-Matt
--- mpr <[EMAIL PROTECTED]> wrote:
>
> I get
> The type doesn't
> support the nested
> "antlib:net.sf.antcontrib:tokens" element.
>
> What
I get
The type doesn't support the nested
"antlib:net.sf.antcontrib:tokens" element.
What version ant-contrib.jar should I have?
Matt Benson wrote:
>
>
> --- mpr <[EMAIL PROTECTED]> wrote:
>
>>
>> Hi,
>>
>> Could you provide an example, please?
>>
>
>
>
> foo${br}bar${br}baz${br
What is the full class name of "SimplyTest"?
If it is "component1.SimplyTest", then you would probably have to use:
If that doesn't work then it may be necessary to specify each package
seperately:
--- mpr <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Could you provide an example, please?
>
foo${br}bar${br}baz${br}
@@[EMAIL PROTECTED]
-Matt
>
>
> Matt Benson wrote:
> >
> > The resourcecollection should be directly
> > passable to .
> >
> > H
Here is my code
And I receive
TestCase SimplyTest
Name Status Type Time(s)
testcases.component1.SimplyTest
java.lang.ClassNotFoundException: testcases.component1.SimplyTest
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileg
Ok, this is just a wild guess, but is this where you would use something
like:
Donald
Denis Bessmertnyj wrote:
Hi All,
My JUnit Test Cases have the next package structure
/root_dir
/testcase
/compone
Hi,
Could you provide an example, please?
Matt Benson wrote:
>
> The resourcecollection should be directly
> passable to .
>
> HTH,
> Matt
>
> --- mpr <[EMAIL PROTECTED]> wrote:
>
>>
>> Hi,
>>
>> I have the file user.properties and inside a paths
>> to folders are defined
>> e.g.
>> C:\
Hi All,
My JUnit Test Cases have the next package structure
/root_dir
/testcase
/component1
/TestComponent1.class
/component2
/TestComponent2.class
How I may run all this test cases with task. May you give me and
example.
Take note that Ant need to run
The resourcecollection should be directly
passable to .
HTH,
Matt
--- mpr <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have the file user.properties and inside a paths
> to folders are defined
> e.g.
> C:\Application\PackagingTools4
> C:\ApplicationTools2\PackagingTools3
>
> For each folder from
Hi,
I have the file user.properties and inside a paths to folders are defined
e.g.
C:\Application\PackagingTools4
C:\ApplicationTools2\PackagingTools3
For each folder from user.properties I need to perform an Operation (task).
What is the simplest way to do that?
At this moment I do:
[CODE]
Does ant have predefined system properties?
For example, I want to get current dir name.
How I may do it?
thank you
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Have you looked at the task
(http://ant.apache.org/manual/CoreTasks/tstamp.html)
Maybe something like:
Also when you say 'set the current date' what does that mean? Do you want to
set on the OS, in an application or to a ANT property?
If you want to calculate what '7 days from
On what day (for your purposes) does a week start?
Will you take holidays into account?
If so, what country's holidays will figure in?
Are there any local holidays that should be taken into account?
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: Satheesh <[EMAI
Denis Bessmertnyj wrote:
Steve,
I have had a talk with my PM and he told me that he also had this bug
with ant.
1.7 doesn't want to work with network resources.
-
Denis
well, expect some fix in Ant1.7.1. In the meantimes, I think something
may be doable about your batch file.
If you mou
to quick ;-)
corrected =
Denis Bessmertnyj wrote:
Here is %JCLASSES_LIB_DIR% variable value (maybe it will be helpful)
\\PC03\jclasses\lib
Here is %ANT_CLASSPATH%
set
ANT_CLASSPATH=%JCLASSES_LIB_DIR%\ant-1.7.0.jar;%JCLASSES_LIB_DIR%\ant-launcher-1.7.0.jar;%JCLASSES_LIB_DIR%\xercesImpl-2.9.0.jar;%JCLASSES_LIB_DIR%\xml-a
Hi,
quick hack =
Steve,
I have had a talk with my PM and he told me that he also had this bug with
ant.
1.7 doesn't want to work with network resources.
-
Denis
- Original Message -
From: "Denis Bessmertnyj" <[EMAIL PROTECTED]>
To: "Ant Users List"
Sent: Friday, April 27, 2007 2:16 PM
Subject: Re:
Here is %JCLASSES_LIB_DIR% variable value (maybe it will be helpful)
\\PC03\jclasses\lib
Here is %ANT_CLASSPATH%
set
ANT_CLASSPATH=%JCLASSES_LIB_DIR%\ant-1.7.0.jar;%JCLASSES_LIB_DIR%\ant-launcher-1.7.0.jar;%JCLASSES_LIB_DIR%\xercesImpl-2.9.0.jar;%JCLASSES_LIB_DIR%\xml-apis-1.3.04.jar;%JCLASSES_L
Denis Bessmertnyj wrote:
Hi All,
Ant in Anger.
Here is my simple build.xml
Hello, Hello
I attach the next jars
ant-1.7.0.jar;ant-launcher-1.7.0.jar;catalina-ant.jar;activation.jar;ant-javamail-1.7.0.jar;junit.jar;ant-junit-1.7.0.jar;
And I receive
BUILD FAILED
java.lang.
Here what I do in batch file
set
ANT_CLASSPATH=%JCLASSES_LIB_DIR%\ant-1.7.0.jar;%JCLASSES_LIB_DIR%\ant-launcher-1.7.0.jar;%JCLASSES_LIB_DIR%\xercesImpl-2.9.0.jar;%JCLASSES_LIB_DIR%\xml-apis-1.3.04.jar;%JCLASSES_LIB_DIR%\xml-resolver-1.2.jar;%JCLASSES_LIB_DIR%\xml-serializer-2.7.1.jar
call java
Steve,
current directory. I just make a test in order to run Ant via Java
- Original Message -
From: "Steve Loughran" <[EMAIL PROTECTED]>
To: "Ant Users List"
Sent: Friday, April 27, 2007 1:50 PM
Subject: Re: Ant: URI has an authority component
Denis Bessmertnyj wrote:
Hi All,
A
Denis Bessmertnyj wrote:
Hi All,
Ant in Anger.
Here is my simple build.xml
Hello, Hello
I attach the next jars
ant-1.7.0.jar;ant-launcher-1.7.0.jar;catalina-ant.jar;activation.jar;ant-javamail-1.7.0.jar;junit.jar;ant-junit-1.7.0.jar;
And I receive
BUILD FAILED
java.lang.
Hi All,
Ant in Anger.
Here is my simple build.xml
Hello, Hello
I attach the next jars
ant-1.7.0.jar;ant-launcher-1.7.0.jar;catalina-ant.jar;activation.jar;ant-javamail-1.7.0.jar;junit.jar;ant-junit-1.7.0.jar;
And I receive
BUILD FAILED
java.lang.IllegalArgumentException: URI
Am using certain parameters in my Test Case. This will get replaced with the
values in the build.xml files.
Am using tokens for Current Date and Others stuffs.
- Original Message -
From: <[EMAIL PROTECTED]>
To:
Sent: Friday, April 27, 2007 3:28 PM
Subject: AW: How to set the next week sta
For which system you need to set the date?
Jan
>-Ursprüngliche Nachricht-
>Von: Satheesh [mailto:[EMAIL PROTECTED]
>Gesendet: Freitag, 27. April 2007 11:51
>An: Ant Users List
>Betreff: How to set the next week start date
>
>Hi Guys, If i want to set the current date its possible in ANT
Hi Denis,
it works for me with ant 1.6.4 .
???
Regards
Frank
Quoting Denis Bessmertnyj <[EMAIL PROTECTED]>:
Hi Frank.
It doesn't work.
- Original Message - From: "Frank Harnack"
<[EMAIL PROTECTED]>
To:
Sent: Friday, April 27, 2007 9:54 AM
Subject: Re: Warning: selected war fi
Hi Frank.
It doesn't work.
- Original Message -
From: "Frank Harnack" <[EMAIL PROTECTED]>
To:
Sent: Friday, April 27, 2007 9:54 AM
Subject: Re: Warning: selected war files include a WEB-INF/web.xml whichwill
be ignored (please use webxml attribute to war task)
Hello Denis,
shou
33 matches
Mail list logo