I'm not sure if you're familiar with perforce's tickets, Martin, but the
file that's saved contains a hash of the password, not the plain-text
password
Kajsa
> -Original Message-
> From: Martin Gainty [mailto:mgai...@hotmail.com]
> Sent: Monday, February 23, 2009 9:44 AM
> To: Ant
We use this for an automated nightly build, too - the login ticket for
the nightly build perforce user is set to be saved for a year. I guess
it's not quite zero intervention, but it's close enough to zero for us.
:)
Kajsa
> -Original Message-
> From: Scott Stark [mailto:sst...@us.ibm.c
For our Perforce tasks that we've automated with Ant, we login once
outside the script, and just save the login ticket that perforce
creates. Is that an option?
Kajsa Anderson
> -Original Message-
> From: Brian Pontarelli [mailto:br...@pontarelli.com]
> Sent: Friday, February 20, 2009
This snippet doesn't exactly give you the PID, but it gives something
that's close enough for what I needed (and may be sufficient for the
OP's use case, I'm not sure):
import java.lang.management.ManagementFactory;
...
ManagementFactory.getRuntimeMXBean().getName(); // gets PID of
c
Propertys in Ant are immutable, so you can't reset the value (with vanilla Ant
- ant-contrib may let you).
Depending on what you need the system property for, though, you may be able to
use .
Kajsa
-Original Message-
From: query [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 19, 200
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 15, 2006 10:49 AM
> To: user@ant.apache.org
> Subject: Passing sysproperties from a file
>
> Hi,
>
> I'm trying to include a set of properties, taken from a file,
> in the Java task as s
Try this format for your packagenames attribute:
packagenames="heavyweight.gui,heavyweight.io,heavyweight.re,heavyweight.
util"
HTH,
Kajsa Anderson
> -Original Message-
> From: Thom Hehl [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 13, 2005 1:46 PM
> To: user@ant.apache.org
> Sub
Take a look at the target -
http://ant.apache.org/manual/CoreTasks/copy.html
> -Original Message-
> From: Paul Goepfert [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 08, 2005 11:32 AM
> To: user@ant.apache.org
> Subject: Including properties files in my buld.xml file
>
>
> Hi,
>
>
> -Original Message-
> Thanks Murali,
> Yes, I had found SOS, but it seems too GUI for use in ant. CodeForge
> looks perfect.
> chad
Note that there is also a command-line version of SOS, and ant tasks for it. I
tried them out a while back (over a year ago), with fair-to-middling succe
> -Original Message-
> I have the ant.bat and ant in one folder say c:aglets\bin.
> I have installed ant in C:\Program Files\ant (AKA: ANT_HOME).
> Java is in C:\Program Files\Java\j2sdk_1.4.0_04 (AKA: JAVA_HOME).
> Java environment variable PATH = %JAVA_HOME%\bin
> Ant environment variabl
You will generally get a better response if you start a new thread for your
question (with a subject that somehow describes your question/problem), rather
than replying to someone else's question.
> -Original Message-
> From: Singh, Arti [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 1
I invoke MailLogger like so:
ant -logger org.apache.tools.ant.listener.MailLogger
-DMailLogger.properties.file=maillogger.properties
I have a vague recollection that when I tried to set the same properties
without setting ${MailLogger.properties.file}, it didn't work... Don't know if
that help
> -Original Message-
> All I want to do is get ant to not fork java. Will this junit
> stuff help me? If so, how do I do it? Remember, I'm very new
> to ant and Java.
>
> Don Payette
>
How are you running ant? The usual way is to define your build process
in an xml file, usually calle
Can someone stop the spam from this thing?
> -Original Message-
> From: Minimalist Manager [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 02, 2005 4:07 PM
> To: Ant Users List
> Subject: Bad syntax or unknown instruction
>
>
> * Ant Exception Error *
>
> ERROR:
> Bad syntax o
Ah - I see you don't have a specified - try:
That should at least give you a stack trace. For some good info on using JUnit
with Ant, see http://www.manning-source.com/books/hatcher/hatcher_ch04.pdf
(sample chapter Testing with JUnit, from Java Development with Ant).
K
I think your test class needs a constructor (inserted below).
> -Original Message-
> From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 17, 2005 11:29 AM
> To: user@ant.apache.org
> Subject: JUnit task problem
>
>
> Hi again... having a bit of problem with my f
> I want to exclude that source directory. Here's the target
> I've defined:
>
>
>excludes="**/vssver.scc,**/source" />
>
>
> The SoruceSafe files (vssver.scc) get excluded just fine, but
> no matter
> what I try for the directory I can't get it to work (I've
> tried **/sour
> From: Nat Gross [mailto:[EMAIL PROTECTED]
> Matt Benson wrote:
> >--- Nat Gross <[EMAIL PROTECTED]>
> >wrote:
> >
> >>Hi;
> >>How can I embed a \t within an echo string?
> >>I tried to console and file, with and without
> >>message attribute, to no
> >>avail.
> >
> >I believe this is an XML thin
> I think the failonerror attribute can just be used to make
> the Perforce
> tasks more lenient on some type of errors; but if you say
> failonerror="false", you cannot get the error(s) which
> happen, they are
> swallowed.
Ok, that's what I was afraid of when I couldn't find it in the manua
I notice that the perforce tasks have a failonerror attribute, but I don't see
any way to set a property if there is an error. Am I just missing something?
I've also found what I think are a few errors (or at least places that could be
clarified) in the manual page for the Perforce optional tas
I did a bit of experimenting with this, and it does seem to be an Eclipse
issue. It looks to me like it's a problem with the Eclipse Ant editor trying
to resolve the filename without first resolving properties in the filename. If
so, that would explain why your work-around works.
Rhino, have
I didn't test this, but I think it should work; the manual says that acts
as a fileset, so I would think you could use a selector...
HTH
Kajsa Anderson
-
To unsubscribe, e-mail: [
Generally when you see ${some.property.name}, it's because the property isn't
actually being set... You might try adding an just after the spot where
you think you're setting it, and see what you get.
Kajsa Anderson
-Original Message-
From: Daisy Guo [mailto:[EMAIL PROTECTED]
Sent:
>From the manual page for Fileset:
excludesfilethe name of a file; each line of this file is taken to be an
exclude pattern.
So you want , not .
Kajsa Anderson
-Original Message-
From: JEFF EMMINGER [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 08, 2004 9:38 AM
To: '[EMAIL PRO
24 matches
Mail list logo