Re: problem with the installation

2012-06-17 Thread glenn opdycke-hansen
please try with different ANT_HOME and PATH: export ANT_HOME=/usr/ant/apache-ant-1.8.4 export PATH=${PATH}:${ANT_HOME}/bin I would also run ant -diagnostics --glenn On Sun, Jun 17, 2012 at 8:30 PM, Jorge Escudero wrote: > When I type "ant": > > root@debian6:~# ant > Exception in thread "main

ant on redhat - selection of java jdk for compiles

2012-02-04 Thread glenn opdycke-hansen
I am using ant on redhat environment. There are multiple Java jdk installs on the system. I just requested that ibm jdk 1.6 sr10 be installed. The build script in ant 1.6.5 is getting the same error message as before the sr10 jdk was installed. Also ant -diagnostics is reporting the old (sr9) jdk.

Re: BUILD FAILED "Perhaps JAVA_HOME does not point to the JDK" ...

2011-10-25 Thread glenn opdycke-hansen
The java -version will indicate that a JRE is present. Try javac -version This will test if a JDK is available glennop@uphen:~$ java -version java version "1.6.0_23" OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre10-0ubuntu5) OpenJDK Server VM (build 20.0-b11, mixed mode) glennop@uphen:

Re: Mail task on Target failure

2011-08-05 Thread glenn opdycke-hansen
+1 CI Servers. It can be used to call an Ant script and email if there is success or failure. We notice that for some CI servers the log was not kept, which is important for error situations. But they are easy to set up, so it worth investigating. --glenn On Fri, Aug 5, 2011 at 09:32, Laura D

Re: Invalid implementation Error

2011-03-13 Thread glenn opdycke-hansen
I wondered if there was a mismatch in the versions of ant components that were being installed. Core is 1.7.1 and optional is 1.4.1? Does opensuse package ant for the distribution? Perhaps that should be re-installed. Or it might be better to manually install the latest version of ant, as Micha

Re: svnant - deploying from Subversion

2010-11-04 Thread glenn opdycke-hansen
I "deploy" ant scripts from svn to different servers. The configuration information is stored in directories. The ant script knows which environment it is in and processes the appropriate directory to find the correct config files. This has been very helpful. --glenn On Thu, Nov 4, 2010 at 15

Re: Single input tag asking input twice

2010-10-20 Thread glenn opdycke-hansen
try running with verbose flag on, -v. Then scan for changes in the addproperty targets. --glenn On Wed, Oct 20, 2010 at 05:42, Catherine_iva wrote: > > I have met an unexpected behaviour of ANT tool. > I have a task : > > > addproperty="key.store.password" /> > > addproperty="key.alias.pas

Re: outofdate task returns TRUE if no target files exist??

2010-07-21 Thread glenn opdycke-hansen
If you want a specific behavior from a script, what if you specifically code that behavior? Then you do not have to depend on antcontrib. I would test to see if a the directory is empty then set the property or call the target that you are expecting in the script. --glenn On Tue, Jul 20, 2010 a

Re: Ant devs need help from users with "exotic" OSes

2010-06-10 Thread glenn opdycke-hansen
Settings\gopdyck\My Documents\Downloads\ant-env --glenn On Wed, Jun 9, 2010 at 22:41, Stefan Bodewig wrote: > On 2010-06-09, glenn opdycke-hansen wrote: > > > Were there instructions for running the test? > > No, it is supposed to be just the -jar. You can throw in an additional

Re: Ant devs need help from users with "exotic" OSes

2010-06-09 Thread glenn opdycke-hansen
Were there instructions for running the test? I ran it on windows and got no output. --glenn On Wed, Jun 9, 2010 at 07:43, Stefan Bodewig wrote: > Hi all, > > we are considering to change the code that reads environment variables > inside of Ant from the current "fork a platform specific execu

Re: ANT for dummies

2010-05-30 Thread glenn opdycke-hansen
t it has only very recently been >>> brought into the installing Ant section of the manual. Previously, the >>> manual suggested that users manually download each of the library >>> dependencies for tasks that they are interested in. Hopefully the change >>> will

Re: ANT for dummies

2010-05-30 Thread glenn opdycke-hansen
To install Ant, follow the instructions at http://ant.apache.org/manual/install.html#installing Bruce had more information on this above. I did notice that there is an extra step: 5. Optionally, run ant -f fetch.xml -Ddest=system to get the library > dependencies of most of the Ant optional tasks.

Re: I must be blind

2010-03-26 Thread glenn opdycke-hansen
I think that doc is found at http://ant.apache.org/manual/conceptstypeslist.html I find it a bit challenging, too. --glenn On Fri, Mar 26, 2010 at 16:20, Robert Menteer wrote: > I'm looking over the documentation that comes with Apache Ant version 1.8.0 > and can't find where classpath, path

Re: empty the file

2010-03-15 Thread glenn opdycke-hansen
Can echo task work here? Below is a target to init the file and one to clear the file. (not quite, it writes 1 byte to the file) first line second line third --glenn On Mon, Mar 15, 2010 at 19:55, Antoine Levy-Lambert wrote: > Hi, > > redirection is a feature of the shell, not of c

Re: Slash issue in ANT script

2009-11-27 Thread glenn opdycke-hansen
I agree that there are some things to be aware of, for example, c:/ will not work in Unix. Ant generally does the right thing with the slashes. There are tasks, like that can help. see http://ant.apache.org/manual/CoreTasks/dirname.html Also there is a task that can be used if needed. see http

Re: Build fail

2009-11-24 Thread glenn opdycke-hansen
Suggest that you run in verbose mode. i suspect that the target could be the cause. -glenn

Re: Build fail

2009-11-23 Thread glenn opdycke-hansen
I agree that there is nothing obviously incorrect. However, do you run unit tests and acceptance tests at the same time? If so then there is a potential problem that the script will run the unit tests then the acceptance tests then check the properties. I suggest that the not be used, instead hav

Re: Build fail

2009-11-21 Thread glenn opdycke-hansen
it appears that the name of the property being set is different than what is being checked: On Sat, Nov 21, 2009 at 12:12, Ben Cuthbert wrote: > Strange thing is, if I set this property in the top of the file > > > > And then in my target put > > > > I get and error > > build-common.xml:347:

Re: Build fail

2009-11-21 Thread glenn opdycke-hansen
What if you change the halton* to "no" ? I would run it with verbose set on in order to get more details. --glenn On Sat, Nov 21, 2009 at 02:43, Ben Cuthbert wrote: > failureproperty="tests.failures" errorproperty="tests.errors"> >

Re: ant sql query weirdness

2009-11-16 Thread glenn opdycke-hansen
What is the output from verbose? ant -v ... On Mon, Nov 16, 2009 at 08:29, Scot P. Floess wrote: > > I see you have onerror set to stop. What happens if you don't set that > attribute? It defaults to abort if not set... > >

Re: Need Help urgent

2009-09-25 Thread glenn opdycke-hansen
Perhaps you can find the answer by running ant in verbose mode (-v) and write the messages to a file with --glenn On Fri, Sep 25, 2009 at 16:47, shwitzu wrote: > > Hi I am having trouble with the Ant build file which I am using in my > program. I am not able to copy the JAR files which are be

Re: Unable to delete file

2009-08-18 Thread glenn opdycke-hansen
I recall that an Ant build on a windows machine could have problems on delete because an extra file explorer window was open on the folder and held a lock preventing the delete. Good luck on you issue. -glenn

Re: AW: Reversing a list

2009-08-05 Thread glenn opdycke-hansen
Ant properties are immutable, once the property is given a value that value cannot be changed. See http://ant.apache.org/manual/CoreTasks/property.html I believe the suggestion was to define a new property (with a new name). The value of the new property can then be assigned. -glenn

Re: exec unix script not working for me

2009-07-21 Thread glenn opdycke-hansen
line endings on files from svn: If the line endings are an issue, you can try a property eol-style: native for the files that are exported and need the appropriate line endings for the target system. See http://svnbook.red-bean.com/en/1.1/ch07s02.html for eol-style details. --glenn On Tue, Jul 21,

Re: write property as part of task definition

2009-07-17 Thread glenn opdycke-hansen
t; > > > Hi Glenn, > > > > Thanks for the answer! > > > > I do indeed need to include the tag in echoxml because without it > > there is no root tag and so the xml is malformed. > > > > > > > > glenn opdycke-hansen wrote: > >> >

Re: write property as part of task definition

2009-07-16 Thread glenn opdycke-hansen
I would try the following approach: (1) write the value to a file and (2) import the file back to the Ant script. Perhaps something like this. bar.as baz.as ... The might need to be included in the --glenn On Thu, Jul 16, 2009 at 15:56, HamletDRC wrote: > > Hi, > > Is it possible

Re: Calling ant programatically

2009-04-27 Thread glenn opdycke-hansen
Can you insert the Ant project that calls both the Java application and the batch job? If so, then you can use the parallel task, see http://ant.apache.org/manual/CoreTasks/parallel.html On Mon, Apr 27, 2009 at 12:42 PM, Ashley Williams wrote: > Ok here's a little more context. > > It seems tha

Re: Confirming non existance of project before importing

2009-02-04 Thread glenn opdycke-hansen
You could check if a project exists in SVN via command svn info svn status I am not sure how that would be done via Ant, though. -glenn On Wed, Feb 4, 2009 at 4:33 AM, wrote: > > Hi All > > I want to be able to confirm whether a project exists / or not within > Subversion before importing a

Re: Gunzip error

2009-01-22 Thread glenn opdycke-hansen
Could there be an issue with the file name, especially the extension? (.tgz vs .tar.gz) Also, I have noted that there is a problem with large archive files. --glenn On Thu, Jan 22, 2009 at 1:49 PM, Faded-Maximus wrote: > > After adding the ls -la command: > > tidy.ASE: > [echo] Cleaning the

Re: Running ANT build via the web

2009-01-09 Thread glenn opdycke-hansen
Running Ant via Web can be done via CruiseControl or AntHill or other sw -glenn On Fri, Jan 9, 2009 at 9:07 PM, Marijan (Mario) Madunic wrote: > Curious if there is a way to run an ANT build via web page? Can Tomcat do > this? Any leads would be greatly appreciated. > > Marijan (Mario) Madunic >

Re: Need help in build.xml file...

2008-12-26 Thread glenn opdycke-hansen
I created an Ant script based on the code you provided. The following messages were returned: exists: Skipped because property 'present' not set. printError: Skipped because property 'isaFile' not set. I did a quick rewrite of your code: depends="clean, prepare, ja

Re: Need help in build.xml file...

2008-12-26 Thread glenn opdycke-hansen
I would use the task to create the directory. I would also consider deleting the directory before the mkdir. Is there a need for the multi-line ? Ant is not intended to be a scripting language. On Fri, Dec 26, 2008 at 6:21 PM, Anna Teittinen wrote: > Hello, > > I am relatively new to using ant.

Re: calling a build file from another

2008-12-17 Thread glenn opdycke-hansen
Subant is another option. http://ant.apache.org/manual/CoreTasks/subant.html I just did a restructure of an Ant script and did some research in this. I ended up splitting up the large ant script and used import task --glenn

Re: How to Configure batch file in Ant?

2008-09-18 Thread glenn opdycke-hansen
I think that John was asking was why are you trying to run a .bat file on linux..bat files are usually run on windows. You state that you are on linux. Other questions include: Do you want to install ActiveMQ with Ant? I would try out the commands needed for your stated requirements. Then you can

Re: exec task with *

2008-09-11 Thread glenn opdycke-hansen
Do you intent to create a zip or a jar file? What is the value of ${usr}? I suggest that the script be written to use the appropriate task, either or For example, usr = ${usr} --glenn On Thu, Sep 11, 2008 at 3:04 PM, I am Who i am <[EMAIL PROTECTED]> wrote: > Hi All > > I'm trying to zip one

Re: How to have Dynamic Propert in ant

2008-07-10 Thread glenn opdycke-hansen
Use (the proper way) The following test script demonstrates how antcall can take parameters and that the timestamp is recomputed. --glenn ${touch.time}

Re: FW: Trouble with installation

2008-04-30 Thread glenn opdycke-hansen
I noticed this > ANT_HOME=C:\Progra~1\Ant\apache-ant-1.7.0 > JAVA_HOME=C:\Progra~1\Java\jdk1.5.0_15; It appears that Ant and Java are installed in the "Program Files" folder. I would first install and to C\:ant or something similar. Please do not use a folder name with an embedded space. Then c

Re: Trouble with installation

2008-04-28 Thread glenn opdycke-hansen
looking for stuff. > > > > > Debbie Shapiro, Data Warehouse Manager > Office: 425.402.2233 > > > -Original Message- > From: glenn opdycke-hansen [mailto:[EMAIL PROTECTED] > Sent: Friday, April 25, 2008 7:41 PM > To: Ant Users List > Subject: Re: Trou

Re: Trouble with installation

2008-04-25 Thread glenn opdycke-hansen
What is the java home directory? what is PATH and JAVA_HOME? Also, you stated that the jdk was installed but later indicate that jre was being used. --glenn On Fri, Apr 25, 2008 at 1:19 PM, Debbie Shapiro <[EMAIL PROTECTED]> wrote: > Hello - > > Let me preface this with saying I am not a Java g

Re: SCP Task - No response from server

2008-04-22 Thread glenn opdycke-hansen
you might try something like the following: trust is important verbose will give you more details. --glenn On Tue, Apr 22, 2008 at 10:20 AM, Steve Loughran <[EMAIL PROTECTED]> wrote: > Sam Hamilton wrote: > > > Hi, > > > > Up until now, I have been manually copy

Re: How to increase memory used by JVM in Ant

2008-02-16 Thread glenn opdycke-hansen
If it is a heap size issue, then you might want to get a verbose gc trace. --glenn

Re: How to increase memory used by JVM in Ant

2008-02-16 Thread glenn opdycke-hansen
Just a guess, but perhaps you need to log or record the depth of the calls. There may be a logic situation and not a heap size issue. --glenn On Feb 16, 2008 12:18 AM, Z W <[EMAIL PROTECTED]> wrote: > Hi Glenn > > In one of my previous post, I got jstack error when 2 targets are calling > each ot

Re: How to increase memory used by JVM in Ant

2008-02-15 Thread glenn opdycke-hansen
Why do you need to alter the heap memory use by the JVM for Ant? Is there a problem that you are dealing with? Why do you want to do this via a command? I would set the ANT_OPTS as an environment variable, but you could set it via a command, too. I have done so below and made the initial heap so l

Re: how to record javac task?

2008-02-04 Thread glenn opdycke-hansen
Please try this javac src="${src}" destdir="${dest}" On Feb 4, 2008 7:30 AM, san84 <[EMAIL PROTECTED]> wrote: > > hi all, > am beginner to ant tool. > am trying to record the compile task using ant as follows > > > > > but nothing is getting recorded > plz help me out

Re: Question about "depends" attribute in the target element

2007-11-12 Thread glenn opdycke-hansen
Perhaps the ant code could create/touch a file at the conclusion of A and test if the file is created at the beginning of A. If the file does not exist at the start of A, then invoke to actions of A. If the file exists at the start of A then do not invoke the actions of A. A should be refactored

Re: Question about "depends" attribute in the target element

2007-11-12 Thread glenn opdycke-hansen
Could you post the complete Ant script? How are you invoking the script and the target(s)? I noticed if you invoke ant with both targetA and targetB, then targetA would be called multiple times. However if you invoke ant with targetC (below) then targetA is invoked once. in targetC --glenn O

Re: Memory and Ant

2007-10-23 Thread glenn opdycke-hansen
if you are running from windows, then you can add an environment variable set ANT_OPTS=-Xms100m -Xmx256m This will set the initial heap to 100MB and the max heap to 256MB. --glenn On 10/23/07, Knuplesch, Jürgen <[EMAIL PROTECTED]> wrote: > > Hello, > > Is it possible to increase the memory of a

Re: How to see the command issued by apply task?

2007-10-10 Thread glenn opdycke-hansen
I usually the command before executing it. This way it gets in the log. --glenn On 10/10/07, Krzysztof Kucybala <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a question as in the subject. I'm trying to run a command with > several arguments passed on a set of files, and I'd really like to see >

Re: Showing current classpath Ant is using in Build executing state

2007-10-06 Thread glenn opdycke-hansen
I would echo the properties, perhaps logging to a file. ---glenn On 10/6/07, Ravi Roy <[EMAIL PROTECTED]> wrote: > > Hi All, > > In a scenario, where build is executing how I can see / log the current > classpath of this build, which Ant is relying to build the project ? > I think Ant -diagnosi

Re: How to convert back slashes to forward slashes

2007-08-09 Thread glenn opdycke-hansen
I believe you need to use the task, see http://ant.apache.org/manual/CoreTasks/pathconvert.html Below is from an example: will generate the path shown below and store it in the property named wl.path.unix. /weblogic/lib/weblogicaux

Re: Formatter for ant scripts ?

2007-07-09 Thread glenn opdycke-hansen
What do you mean by a formatter? What I notice is missing from XEmacs is that it will not flag if a keyword is misspelled. However it will display the file with special fonts and will reindent the contents. I usually have the api html page open on one window and the editor with another. --glenn

Re: Formatter for ant scripts ?

2007-07-06 Thread glenn opdycke-hansen
XEmacs/Emacs works nicely for editing and formatting ant xml scripts. --glenn On 7/4/07, Rebhan, Gilbert <[EMAIL PROTECTED]> wrote: Hi, i'm searching for a formatter task for ant build scripts. Something like ++ in Eclipse Ant Editor but as ant task i can feed with own rules, i.e. indention,

Re: at my wits end with delete

2007-02-09 Thread glenn opdycke-hansen
I was wondering if the parens in the names could be causing the issue. Perhaps if they are escaped that would help. > -Original Message- > From: Tracy Jones [mailto:[EMAIL PROTECTED] > Sent: Friday, February 09, 2007 3:09 PM > To: Ant Users List > Subject: RE: at my wits end with delete

Re: problem: null characters written to stdout from multiple sshexec calls

2007-01-09 Thread glenn opdycke-hansen
After doing some more research on this, I have found the following: 1. the problem of hex nulls in the log file occurs when using the alternate code for the fix. 2. When the test is started and is in progress, the normal, expected text is in the log file. 3. When the test is completed, then the nu

problem: null characters written to stdout from multiple sshexec calls

2007-01-05 Thread glenn opdycke-hansen
bug 41304 created for ant 1.7 I had used the patch from 1.6.5 with success. However when i tested ant 1.7 this problem surfaced. If the build process for 1.7 is similar, I should be able to come up with a proposed fix. --glenn --

Re: ant javac version question

2006-12-15 Thread glenn opdycke-hansen
It may be working now. I have to check with a co-worker. The target="1.4" may have been effective. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ant javac version question

2006-12-13 Thread glenn opdycke-hansen
e-src: On 12/13/06, Scot P. Floess <[EMAIL PROTECTED]> wrote: I'd try removing all my class files and recompiling first. Just because you removed the JDK 1.5 - does that mean you rebuilt everything afterward? Otherwise you will still have 1.5 compiled versions of your class files. glenn o

Re: ant javac version question

2006-12-13 Thread glenn opdycke-hansen
the JDK 1.5.0+ I just compiled some code and did a "javap -c -verbose" on a class file... With the JDK 1.5.0_09 I get a minor = 0 major = 49... Compiling wiht "javac -source 1.2 release 1.2" I see the minor = 0 major = 46. My guess is the JDK being used during compilatio

Re: ant javac version question

2006-12-11 Thread glenn opdycke-hansen
ight want to put $JAVA_HOME/bin first in your path. Or, on the command line type: java -version Either way its a JVM mismatch problem. glenn opdycke-hansen wrote: > Replies below. > > On 12/11/06, Scot P. Floess <[EMAIL PROTECTED]> wrote: >> What type of exceptions are you getti

Re: ant javac version question

2006-12-11 Thread glenn opdycke-hansen
s your harddrive full? no glenn opdycke-hansen wrote: > We are seeing that the javac can produce an unusable .class file. > One PC will build the java source OK, but the other PC does not. The > resulting JAR file has a different size and there are exceptions when > the other jar

ant javac version question

2006-12-11 Thread glenn opdycke-hansen
We are seeing that the javac can produce an unusable .class file. One PC will build the java source OK, but the other PC does not. The resulting JAR file has a different size and there are exceptions when the other jar is used. We set JAVA_HOME to the jdk (1.4.2_13) on both PCs. Has anyone seen

Re: Multiple .properties in the same ANT

2006-08-14 Thread glenn opdycke-hansen
I agree with the comment that ant-contrib can be useful here. I believe this an appropriate place to use antcall, for these reasons. 1. antcall takes a param element that can be used to specify the name of the .properties file you want processed. 2. properties that are assigned in the targe

Re: error from multiple antcalls, how to fail after all antcalls run?

2006-08-04 Thread glenn opdycke-hansen
It appears that a combination of and should/could/might work. Has anyone tried that?

Re: error from multiple antcalls, how to fail after all antcalls run?

2006-08-03 Thread glenn opdycke-hansen
How do you create a resource? On 8/3/06, Mathew Delong <[EMAIL PROTECTED]> wrote: I've done this in the past by making all of my tests create a resource if they fail, and after all the tests are completed, check if that resource exists. I am sure there are better ways to do this, though.

Re: error from multiple antcalls, how to fail after all antcalls run?

2006-08-03 Thread glenn opdycke-hansen
"xxx yyy xxx" > > Mathew Delong wrote: >> I've done this in the past by making all of my tests create a resource >> if they fail, and after all the tests are completed, check if that >> resource exists. I am sure there are better ways to do this, though. >

error from multiple antcalls, how to fail after all antcalls run?

2006-08-03 Thread glenn opdycke-hansen
I have a question about how to code a script to multiple tests are run and fail at the end of the script. I have a script that calls multiple targets via antcalls: I want to execute all of the antcall targets. If any of the antcall targets get an er

Re: Proper location of build.xml file

2006-08-01 Thread glenn opdycke-hansen
I would specify a smaller ms, perhaps ANT_OPTS="-Xms256m -Xmx512m" If it is a short build then that would not matter. If the build takes a lot of time and memory, it is worth considering. --glenn On 7/27/06, Laura Stewart <[EMAIL PROTECTED]> wrote: Thanks everyone. By placing the build.xml file

Re: Running 2 ant commands in a windows .bat file, only first one executes

2006-07-14 Thread glenn opdycke-hansen
try calling ant (finally, a question i can answer!) see below On 7/14/06, Anderson, Rob (Global Trade) <[EMAIL PROTECTED]> wrote: I have a simple windows batch file that is supposed to run 2 ant commands like so... call ant -logger org.apache.tools.ant.listener.MailLogger -f h:\temp\ant_batch\

Re: CHMOD Problem

2006-06-23 Thread glenn opdycke-hansen
Some things to check: 1. what version of ant is being used? The version of ant might pre-date support for chmod 2. is ${REAL} set to the correct value? I just had a problem where a property was not set as expected. 3. try setting verbose="true" for chmod task and run again. --glenn -

Re: Importing files

2006-06-09 Thread glenn opdycke-hansen
Another option/solution is below: ... ... ...should be changed to... ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Copying files from dirs specified by libpath

2006-05-31 Thread glenn opdycke-hansen
Perhaps copy/flatten="true" provides the function you are looking for. --glenn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: The zip task and zipfileset type

2006-05-27 Thread glenn opdycke-hansen
Here is my take on your example: updated target for zip task 1. create the zip in a directory. clean the directory firs

Re: Propogating properties up

2006-05-06 Thread glenn opdycke-hansen
Have you considered ant-contrib? http://ant-contrib.sourceforge.net/ant-contrib/manual/tasks/antfetch_task.html AntFetch AntFetch is identical to the standard 'Ant' task, except that it allows properties from the new project to be set in the original project. ... --glenn -

Re: scp multiple files getting error

2006-05-04 Thread glenn opdycke-hansen
r when trying to copy a file to a remote directory that does not exist. BUILD FAILED H:\scptest.xml:6: com.jcraft.jsch.JSchException: 2: syserr: No such file or directory, file: /home/rande4/no/directory/path/file -Rob Anderson > -Original Message- > From: glenn opdycke-hansen [m

Re: scp multiple files getting error

2006-05-04 Thread glenn opdycke-hansen
I just noticed jsch-0.1.28.jar and will start testing with that version. On 5/4/06, glenn opdycke-hansen <[EMAIL PROTECTED]> wrote: ant 1.6.5 + fixes for sshexec jsch jsch-0.1.24.jar On 5/4/06, Anderson, Rob (Global Trade) <[EMAIL PROTECTED] > wrote: > > What version of An

Re: scp multiple files getting error

2006-05-04 Thread glenn opdycke-hansen
ant 1.6.5 + fixes for sshexec jsch jsch-0.1.24.jar On 5/4/06, Anderson, Rob (Global Trade) <[EMAIL PROTECTED]> wrote: What version of Ant and jsch are you using? -Rob A > -Original Message- > From: glenn opdycke-hansen [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 0

scp multiple files getting error

2006-05-04 Thread glenn opdycke-hansen
I am executing scp from ant and getting the error message "No response from server". I have used scp successfully before. This time it is tranfering multiple files from winxp to unix. (transferring a single file is working fine.) The code snippet follows: I checked

Re: Problem with ant 1.6

2006-05-04 Thread glenn opdycke-hansen
There is not much information. This is a guess: Perhaps there are jar files in the ant/lib dir for ant1.5 that have not been moved to 1.6. More info is needed. --glenn On 5/4/06, Susheel Raina <[EMAIL PROTECTED]> wrote: Hi, We are using ant 1.6 alpha for building and deploying our Web applic

Re: problem with junit/FileNotFound

2006-04-26 Thread glenn opdycke-hansen
incorrectly? Is there a know problem? --glenn On 4/26/06, Burgess, Benjamin <[EMAIL PROTECTED]> wrote: > > Where you declare the directory, use > instead of > > Basically, files/directories should be declared using the location > attribute. > > Ben > > -Origina

ant/junit problem with FileNotFound

2006-04-26 Thread glenn opdycke-hansen
I have several ant scripts that invoke the next ant script via . The last ant script has a task that invokes Java code. There is a problem in the Java code that the File class cannot find the file with a relative path. I can resolve this by using the complete path to the file. This problem does no

problem with junit/FileNotFound

2006-04-26 Thread glenn opdycke-hansen
I have several ant scripts that invoke the next ant script via . The last ant script has a task that invokes Java code. There is a problem in the Java code that the File class cannot find the file with a relative path. I can resolve this by using the complete path to the file. This problem does no

Re: tar with tarfileset

2006-03-29 Thread glenn opdycke-hansen
I would remove the basedir from the tar statement, since the tarfileset should select the files you want: On 3/29/06, Yves Willems <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I want to make a tar file hold

Re: Ant task equivalent to the "ln" unix command

2006-02-16 Thread glenn opdycke-hansen
I would use the exec task Executes a system command. When the os attribute is specified, the command is only executed when Ant is run on one of the specified operating systems. http://ant.apache.org/manual/CoreTasks/exec.html On 2/16/06, ar <[EMAIL PROTECTED]> wrote: > > Hi all, > > Do

Re: Help with Microsoft visual source safe ant task

2006-02-13 Thread glenn opdycke-hansen
We learned the same lesson. If files are checked out of vss, then getting the files will either not get the file or will get an older version of the file (i do not recall which is true). So has anyone created a utility to list which files have been checked out from vss? That would be helpful to r

Re: Ant task : how to avoid re-executing the same task

2006-02-05 Thread glenn opdycke-hansen
If I understand correctly, I would set a property from the import target and then add an "unless" clause to the target. If the target is executed once, then it would not be executed again. This approach may not work if the script is using "antcall" tasks, though. I would search for "antcall" and

Re: sshexec fix for ant1.7 question

2006-01-26 Thread glenn opdycke-hansen
I was not clear. What a meant by patching ant is updating some ant source files from 1.7, eg SSHExec.java, and rebuilding ant locally (with the build.bat file) I see that the new files are written to dist/lib and to dist/bin. specifically, i see ant-jsch.jar and ant.jar and others files. Should

Re: sshexec fix for ant1.7 question

2006-01-25 Thread glenn opdycke-hansen
Thanks, I have done that. I was looking for some additional info on 1.7. From your response, it appears to be still a while before 1.7 becomes available. Is there information or a howto on patching ant? --glenn On 1/23/06, Anderson, Rob (Global Trade) <[EMAIL PROTECTED]> wrote: > Which option is

Re: "java.io.IOException: Negative seek offset" while expanding .tar file

2006-01-22 Thread glenn opdycke-hansen
hmm unzipping a tar file? try untar.

sshexec fix for ant1.7 question

2006-01-22 Thread glenn opdycke-hansen
I have a followup question on the fix for sshexec fix mentioned below: glenn opdycke-hansen wrote: > Steve, > I have been looking at using Ant for application deployment to multiple > servers. > I see there is a known problem with ant 1.6.5 where a sshexec request > will close st

Re: error msg for incorrect jar/basedir value

2006-01-22 Thread glenn opdycke-hansen
Document the dirname/windows "feature". If this cannot be resolved, it would be good to document the behavior. Can the following be considered for the Ant user manual? http://ant.apache.org/manual/CoreTasks/jar.html Note that if the basedir value has space character(s) appended to it, then some

Re: Problems deleting files or directories via ftp

2006-01-17 Thread glenn opdycke-hansen
It appears that user cvt2032 is the owner of ejb-jar.xml and that is the only userid that has write permissions to that file. The userid that was attempting to delete was "user" (see above). That is one reason the delete will not work. I suggest you try to use ftp or even su and test your logic a

Re: error msg for incorrect jar/basedir value

2006-01-16 Thread glenn opdycke-hansen
I have a copy of DirectoryScanner. I do not see any calls to trim in that code. I will prepare a patch that quotes the directory name in question. This might help others that get the error. I do know think it would be safe to modify the file name, I would not want to break something else. -

Re: error msg for incorrect jar/basedir value

2006-01-16 Thread glenn opdycke-hansen
Yes, I was running on windows. We build on windows and deploy to unix. I just tested it on aix 5.2 and got the following msgs [echo] jar destfile="output/out2.jar" [echo] basedir="jar-root " BUILD FAILED /app/tibcoems/deployment/ant-jar-filespec-prob/build-basedir-space.xml:67: /app/

Re: error msg for incorrect jar/basedir value

2006-01-16 Thread glenn opdycke-hansen
Ant script to recreate problem is attached. jar.root.dir.exists=${jar.root.dir.exists} jar.root.dir.dir1.exists=${jar.root.dir.dir1.exists} jar destfile="${out.dir}/${out1.jar}" basedir="${jar.root.dir}" jar.root.dir.space.exists=${jar.root.dir.space.exists}

Re: error msg for incorrect jar/basedir value

2006-01-16 Thread glenn opdycke-hansen
I did make a modification to DirectoryScanner.java. The additional output confirms that File.exists() thinks that the directory with an extra space exists. The change that could help is to quote the directory name so the space is more promentent. See below: [jar] go-get abs path abspath="C

Re: Problems deleting files or directories via ftp

2006-01-16 Thread glenn opdycke-hansen
delete, create or whatever. > That's the reason of my confusion about where the problem is. I know thi is > a simple script and must work, but in fact doesn't. > > Thnkx and cheers! > > -Mensaje original- > De: glenn opdycke-hansen [mailto:[EMAIL PROTECT

Re: Problems deleting files or directories via ftp

2006-01-16 Thread glenn opdycke-hansen
Does the user have permissions to delete the file(s)? from google: Answer/Solution: The 550 error is a message from the server stating that the account you have currently logged in as does not have permission to perform the action you are attempting. You may be trying to upload to the wrong direct

Re: error msg for incorrect jar/basedir value

2006-01-16 Thread glenn opdycke-hansen
; Jeffrey E. Care ([EMAIL PROTECTED]) > WebSphere v7 Release Engineer > WebSphere Build Tooling Lead (Project Mantis) > > > glenn opdycke-hansen <[EMAIL PROTECTED]> wrote on 01/16/2006 08:27:38 AM: > > > We have seen a cryptic error message from the jar task. If the > &g

error msg for incorrect jar/basedir value

2006-01-16 Thread glenn opdycke-hansen
We have seen a cryptic error message from the jar task. If the basedir directory does not exist, ant writes the following message BUILD FAILED C:\src\ant-jar-filespec-prob\build.xml:49: C:\src\ant-jar-filespec-prob\bad-base-dir-not-exists not found. Total time: 0 seconds However if the basedir

Re: MULTI DEPLOYMENT

2006-01-12 Thread glenn opdycke-hansen
Wed Aug 31 19:39:14 2005 UTC (4 months, 1 week ago) by mbenson On 1/12/06, Steve Loughran <[EMAIL PROTECTED]> wrote: > glenn opdycke-hansen wrote: > > Steve, > > I have been looking at using Ant for application deployment to multiple servers. > > I see there is a k

  1   2   >