Re: Classloader reuse for tasks

2008-06-18 Thread Lucian Chirita
Steve Loughran wrote: Lucian Chirita wrote: Is there a way to reuse a classloader across several tasks? All the tasks refer the same classpath ID, and have fork="false". I thought setting ant.reuse.loader would take care of this, but it doesn't because the task does not use ClasspathUtil t

proj using ant

2008-06-18 Thread gaurish
hi i am creating a deployement tool for weblogic server by completely automating the deployement process using ant tool. (only for web application). user sepecifies the saurce folder through my application and also specifies the destination folder for the creation of context root. following i

Re: ant build file

2008-06-18 Thread Upul Godage
You can give a specific build file to Ant by giving the file name with the switch -f. e.g. ant -f myfile.xml So you can have two build files in the same folder and specifically call the required one. If file name is not given then it will look for the file named build.xml. Upul On Thu, Jun 19, 2

ant build file

2008-06-18 Thread gaurish
Hi, if i place both my applications (web application and business application ) in same source folder , and i want to create context root for deployement using ant tool. so will it require two seperate build files and if so can they be placed in the same source folder. thanks in advance -- Vie

File transfer to remote http site

2008-06-18 Thread Loganathan M
Hi All, I need to do a ftp to remote http site and store the file over there. Could you please help me out in doing this task.. Appreciate your help on this. Regards, Loganathan M =-=-= Notice: The information contained in this e-mail message and/or attachments to it may con

Re: Classloader reuse for tasks

2008-06-18 Thread Steve Loughran
Lucian Chirita wrote: Is there a way to reuse a classloader across several tasks? All the tasks refer the same classpath ID, and have fork="false". I thought setting ant.reuse.loader would take care of this, but it doesn't because the task does not use ClasspathUtil to Java tries to isol

Classloader reuse for tasks

2008-06-18 Thread Lucian Chirita
Is there a way to reuse a classloader across several tasks? All the tasks refer the same classpath ID, and have fork="false". I thought setting ant.reuse.loader would take care of this, but it doesn't because the task does not use ClasspathUtil to instantiate classloaders. Thank you, Luci

RE: unable to execute JAR file

2008-06-18 Thread Toomey, Kevin H (ATS, IT)
Hi Irfan, You need a manifest file with a main class attribute. A quick googling of 'jar main-class' brings back a wealth of links to check out. Here's one: http://java.sun.com/developer/Books/javaprogramming/JAR/basics/run.html Thanks, Kevin From: [EMAIL PR

RE: unable to execute JAR file

2008-06-18 Thread Irfan.Sayed
Thanks for all reply. Now what I did is I compiled only one source file and made a jar out of it which contains only one ArrayExample.class file. Once JAR available then I unzipped that JAR and edited the manifest file as per your suggestion but still I am getting same error. Please find the atta

Mary Milne is out of the office.

2008-06-18 Thread Mary Milne
I will be out of the office starting 17/06/2008 and will not return until 23/06/2008. In the case of urgent enquires please contact:. Alison Litherland [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

RE: unable to execute JAR file

2008-06-18 Thread Taj, Abdul
Does the jar have a manifest file that specifies the main class that needs to be executed when you execute it? When you create a jar it will have a META-INF directory inside which you need to place a manifest file that has the main class that needs to be executed when you execute the jar file.

Re: javac -encoding

2008-06-18 Thread Scot P. Floess
The task does have an encoding attribute: http://ant.apache.org/manual/CoreTasks/javac.html "encoding Encoding of source files. (Note: gcj doesn't support this option yet.)" Its in the online docs ;) On Wed, 18 Jun 2008, Raghuveer wrote: Is there option compiling all my source files

Re: javac -encoding

2008-06-18 Thread Prashant Reddy
Yes 'encoding' option exists in javac task. http://ant.apache.org/manual/CoreTasks/javac.html Raghuveer wrote: Is there option compiling all my source files in my web application in "tomcat\webapps\testApp" with "-encoding "option in ant. Example: . javac -encoding ISO-8859-2 Hel

javac -encoding

2008-06-18 Thread Raghuveer
Is there option compiling all my source files in my web application in "tomcat\webapps\testApp" with "-encoding "option in ant. Example: . javac -encoding ISO-8859-2 HelloWorld.java . javac -encoding ISO-8859-2 *.java

AW: unable to execute JAR file

2008-06-18 Thread Knuplesch, Juergen
Use classname attribut instead of MANIFEST: -- Jürgen Knuplesch Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 18. Juni 2008 09:26 An: user@ant.apache.org Betreff: unable to execute JAR file Hi All, I have 10 java file

Re: writing to ant's logger from external type

2008-06-18 Thread Stefan Bodewig
On Tue, 17 Jun 2008, Ruel Loehr <[EMAIL PROTECTED]> wrote: > Does anyone know of a way to pass ants logger to an external type Not Ant's logger (since there could be more than one BuildListener attached), but the Project instance that is running Ant. If your type defines a method of signature p

create remote folder

2008-06-18 Thread [EMAIL PROTECTED]
hi all I need to create a remote folder using scp ant task. Or I need to copy a dir to a remote host. I used but it just copy files . If the remote dir does not exists i need ant create it automatically possibly. Regards Giovanni ---

Re: unable to execute JAR file

2008-06-18 Thread Ognjen Blagojevic
[EMAIL PROTECTED] wrote: I have 10 java files and I have written Ant build.xml to compile and create JAR file which contains the .class files. Now my requirement is that I need to execute/install the JAR file but unfortunately I can’t do this as I am getting following error. ... Failed to loa

Re: unable to execute JAR file

2008-06-18 Thread Henning Bredel
On Wednesday 18 June 2008 09:25:42 [EMAIL PROTECTED] wrote: > Hi All, > > > > I have 10 java files and I have written Ant build.xml to compile and > create JAR file which contains the .class files. Now my requirement is > that I need to execute/install the JAR file but unfortunately I can't do > th

Re: unable to execute JAR file

2008-06-18 Thread Prashant Reddy
Google is your friend. http://www.google.co.in/search?q=Failed+to+load+Main-Class+manifest+attribute The first hit from the search result has this link to Java tutorial : http://java.sun.com/docs/books/tutorial/deployment/jar/basicsindex.html To execute a jar using 'java' command, the JAR file

Re: unable to execute JAR file

2008-06-18 Thread Ognjen Blagojevic
I have 10 java files and I have written Ant build.xml to compile and create JAR file which contains the .class files. Now my requirement is that I need to execute/install the JAR file but unfortunately I can’t do this as I am getting following error. ... Failed to load Main-Class manifest attr