Problems in running ant in WebSphere studio site deveoper in bundles

2006-10-11 Thread tharanga wijethilake
Hi, I am using the WSSD 5.1.2 trial version and I am trying to run an ant script in side a bundle using a java program. It is as follows. package oulu.info.capnet.samples; import java.io.File; import org.apache.tools.ant.Project; import org.apache.tools.ant.ProjectHelper; /** * @Author: Thar

AW: Problems in running ant in WebSphere studio site deveoper in bundles

2006-10-11 Thread Jan.Materne
>I am using the WSSD 5.1.2 trial version and I am trying to run >an ant script in side a bundle using a java program. It is as follows. > > >java.lang.NoClassDefFoundError: org/apache/tools/ant/Project Sounds like the Ant jars are not accessible from your bundle Jan --

Re: Check to See If Directory Exists

2006-10-11 Thread Robert Pepersack
OK. I looked in the online documentation and read from the book "Java Development With Ant", but neither documented this behavior of . Thanks for your help, Bob Robert Pepersack Senior Lead Developer Maryland Insurance Administration 410-468-2054 >>> [EMAIL PROTECTED] 10/10/2006 4:29 PM >>> >

Re: Check to See If Directory Exists

2006-10-11 Thread James Abley
Maybe not documented, but it's not too hard to discover empirically. bash:/work/ant-test/mkdir$ ant Buildfile: build.xml test: [mkdir] Created dir: /work/ant-test/mkdir/test BUILD SUCCESSFUL Total time: 0 seconds bash:/work/ant-test/mkdir$ ant Buildfile: build.xml test: BUIL

AW: Check to See If Directory Exists

2006-10-11 Thread Jan.Materne
Ok, not everyone does have a look into the source ;-) oata.taskdefs.MKdir.java:036: public class Mkdir extends Task { oata.taskdefs.MKdir.java: :... oata.taskdefs.MKdir.java:048:public void execute() throws BuildException { oata.taskdefs.MKdir.java: :... oata.ta

Re: AW: Check to See If Directory Exists

2006-10-11 Thread Robert Pepersack
Thanks everybody! Your responsiveness is part of why, as a new person to Ant, I love it already. In comparision to other forums I've posted questions to in the past, this forum is by far the best I've seen. Bob >>> [EMAIL PROTECTED] 10/11/2006 8:27 AM >>> Ok, not everyone does have a look into

Re: Problems in running ant in WebSphere studio site deveoper in bundles

2006-10-11 Thread tharanga wijethilake
Thank you for the reply. Yes it seems so. but I did include them in the libraries in the build path. Trying to figure out what else I should do. Still have the same problem. Thank you. Tharanga Wijethilake - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Wednesday, October 11,

AW: Problems in running ant in WebSphere studio site deveoper in bundles

2006-10-11 Thread Jan.Materne
But does WSSD use that "build path"? Do you have to configure WSSD to include the Ant libs? Jan >-Ursprüngliche Nachricht- >Von: tharanga wijethilake [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 11. Oktober 2006 14:40 >An: Ant Users List >Betreff: Re: Problems in running ant in WebSp

Re: Problems in running ant in WebSphere studio site deveoper in bundles

2006-10-11 Thread tharanga wijethilake
I think the problem is that I have to specify the imported jars in the MANIFEST.MF file but it does not allow me to do so. I have to figure out how external packages can be imported in to the bundle. I think that is some thing to be handled in WebSphere IDE. Thanks for the reply. Tharanga Wije

Re: java.lang.InstantiationException:org.apache.tools.ant.Main

2006-10-11 Thread Swami
even i solved this problem after seeing what Arthi had done. Thanks a ton. Arti Singh wrote: > > Hi thanks, > I figured that out the hard way on ffriday.I had placed > weblogic.jar in my classpath , and hence my ant did no work.Problem solved > .I just placed the jar file in ant li

How To Jail Ant Script by Options

2006-10-11 Thread Alexandre CABROL PERALES
Hi everybody. I use cruise control over Ant. And i've many projects managed by cruise control on different folders. How can i avoid that build.xml script can access to upper folder by an ant option. I cant lock build.xml content so i need to jail each script execution in it folder. Could you

Quiet output

2006-10-11 Thread Iván Pérez Domínguez
I'm writing a build.xml file that tests a program. Before using ANT, I had a bash script that printed the results like init.d scripts do when started/stopped. For instance, for an input file to be tested, called mtp.mtp, it printed something like mtp.mtp

Filterchaining individual property

2006-10-11 Thread Hunter Peress
is there a way to filterchain an individual property? The *org.apache.catalina.ant.ServerinfoTask *somehow supports the outputproperty attribute anyway, i only want the first line of that property.

Re: Filterchaining individual property

2006-10-11 Thread Matt Benson
Tomcat's tasks support nested I/O redirectors. You should be able to specify an outputfilterchain with an outputproperty here. HTH, Matt --- Hunter Peress <[EMAIL PROTECTED]> wrote: > is there a way to filterchain an individual > property? > > The *org.apache.catalina.ant.ServerinfoTask *someh

Re: Filterchaining individual property

2006-10-11 Thread Hunter Peress
Hi Matt, The type doesn't support the nested "outputfilterchain" element. On 10/11/06, Matt Benson <[EMAIL PROTECTED]> wrote: Tomcat's tasks support nested I/O redirectors. You should be able to specify an outputfilterchain with an outputproperty here. HTH, Matt --- Hunter Peress <[EMAIL

Re: Filterchaining individual property

2006-10-11 Thread Hunter Peress
OK fixed. http://localhost:8080/manager"; username="" password="" outputproperty="HI" > ${HI} it didnt matter that I gave redirector an output property but i needed to give

Re: Filterchaining individual property

2006-10-11 Thread Hunter Peress
It woud still be easiest if you could give any property to a filterchain instead of having to implement I/O redirection for everything. On 10/11/06, Hunter Peress <[EMAIL PROTECTED]> wrote: OK fixed. http://localhost:8080/manager"; username="" password=""

Re: Quiet output

2006-10-11 Thread Ninju Bohra
You might want to look at the -emacs command line option to surpress the 'prefixing' that appears on the output - Original Message From: Iván Pérez Domínguez <[EMAIL PROTECTED]> To: user@ant.apache.org Sent: Wednesday, October 11, 2006 2:54:30 PM Subject: Quiet output I'm writing a bui