Problems creating my own ant task

2010-11-04 Thread abridgel
Hi I'm new to creating ant tasks - I wrote a simple hello world java program, created a antbuild.xml - I jarred it up as follows /hello/tasks/hello.class /hello/takks/antlib.xml I put the jar in my ANT_HOME/lib At the top of my buildfile I define the xmlns in the project tag

RE: Windows authentication

2010-11-04 Thread Ludwig, Michael
exec executable=net arg line=use \\${deployment.server}\c$ /user:${deployment.server}\${login.id} ${login.password}/ /exec Thanks, Kent - this works fine. Michael

ant-contrib: HTTPS post and unverifiable certificate

2010-11-04 Thread Ludwig, Michael
I'd like to capture and process the response from the ant-contrib post task. There are two documented ways of capturing the response, neither of which appears to work for me. Is there anything I'm missing? Yes, I found out myself. The URL I was posting to was HTTPS with an unverifiable

RE: ant-contrib: HTTPS post and unverifiable certificate

2010-11-04 Thread Ludwig, Michael
Does anyone know if I can instruct the post task, or rather the HTTP library it is using to continue in the face of an unverifiable certificate, in the way curl can be configured accordingly using the -k/--insecure switch? Looks like using the keytool utility might bring some progress.

RE: ant-contrib: HTTPS post and unverifiable certificate

2010-11-04 Thread Ludwig, Michael
Does anyone know if I can instruct the post task, or rather the HTTP library it is using to continue in the face of an unverifiable certificate, in the way curl can be configured accordingly using the -k/--insecure switch? Looks like using the keytool utility might bring some

Re: fileset exclude A/a if B/a exists

2010-11-04 Thread Dominique Devienne
On Wed, Nov 3, 2010 at 7:52 PM, Daniel Becroft djcbecr...@gmail.com wrote: [...] However, I only want to apply this selector to a subset of the entries in the fileset. [...] I want to select everything, but only apply the present selector to anything under \alpha (everything under \beta and

svnant - deploying from Subversion

2010-11-04 Thread Ludwig, Michael
Our web app source code is stored in Subversion. It's not Java, it's a script app. It needs to be deployed to various servers, and some configuration data needs to be taken into account. There is no automation at the moment, but I'm about to change that. I'm presently cobbling together a

How to script database upgrade using ANT script

2010-11-04 Thread Java Jboss
Hi, I’m a complete newbie to ANT and I need to write an ant script which upgrades a database version from base level 1.00 to a given version number by running a series of mysql (ver 5.1.45) scripts. Using ANT script I need to: 1) create a database 2) import mysql database(s) dump to a new

RE: How to script database upgrade using ANT script

2010-11-04 Thread Ludwig, Michael
I need to write an ant script which upgrades a database version from base level 1.00 to a given version number by running a series of mysql (ver 5.1.45) scripts. Using ANT script I need to: 1) create a database 2) import mysql database(s) dump to a new schema 3) check current database

Re: How to script database upgrade using ANT script

2010-11-04 Thread Antoine Levy Lambert
Hi, you will need to use the exec/ task for steps like creating the database and importing the dump into the new schema. Once your database is up, you can use the sqlexec/ task to run DDL and DML statements. To check whether a script exists, there is a task called available/ which can set a

RE: How to script database upgrade using ANT script

2010-11-04 Thread Java Jboss
Hi Antoine, Thank you for this update. I am using a linux server. I've been asked to do this in ANT only. Can you possibly provide me an example of how a similar process might be scripted using ANT? As I have never used ANT or any other similar products before I am using Google for

Re: IvyDE resolving artifacts with m:classifier

2010-11-04 Thread Brian Gray
Hi Nicholas, Thanks for the help! Please see below: 2010/11/4 Nicolas Lalevée nicolas.lale...@hibnet.org Le 4 nov. 2010 à 14:09, Brian Gray a écrit : Hi all, Our build integrates with a few projects at the company that our built using Maven. One of the projects builds a separate

Re: How to script database upgrade using ANT script

2010-11-04 Thread Antoine Levy Lambert
On 11/4/10 1:35 PM, Java Jboss wrote: Hi Antoine, Thank you for this update. I am using a linux server. I've been asked to do this in ANT only. Can you possibly provide me an example of how a similar process might be scripted using ANT? As I have never used ANT or any other similar

Re: svnant - deploying from Subversion

2010-11-04 Thread Antoine Levy Lambert
Hello Michael, I would personnally not want to deploy the webapp directly from subversion, although this can certainly work. I would rather setup a build process and continuous integration and create a zip file or a war file from the sources in subversion. You would need to use a continuous

Re: antlib classloader issue

2010-11-04 Thread Venkatesh Sangam
Thank you Mike for your email. Yes, I have tried using the same loaderRef, but it does not work. It complains that the taskdef implementation does not exist. Since the classes are already loaded, this new taskdef implementation is not added to existing loaderRef I was able to use the classloader

Re: antlib classloader issue

2010-11-04 Thread Antoine Levy Lambert
On 11/4/10 2:33 PM, Venkatesh Sangam wrote: I was able to use theclassloader task. This is a custom task written by JToolshttp://enitsys.sourceforge.net/ant-classloadertask/ that lets me append classpath to an existing classloader. Using this “classloader” task, I am able to execute my custom

Re: Problems creating my own ant task

2010-11-04 Thread abridgel
I'm desperate can anybody help? -- View this message in context: http://ant.1045680.n5.nabble.com/Problems-creating-my-own-ant-task-tp3248855p3250761.html Sent from the Ant - Users mailing list archive at Nabble.com. - To

Re: Problems creating my own ant task

2010-11-04 Thread Alexey N. Solofnenko
With scriptdef it is now rare that you need to write a task in Java. Have you tried it? Maybe also in conjunction with macrodef. - Alexey. On 11/4/2010 12:53 PM, abridgel wrote: I'm desperate can anybody help? === Notice: This e-mail message, together with any attachments, contains

Re: Problems creating my own ant task

2010-11-04 Thread abridgel
We need to write our own tasks because of portability issues. So I need to be able to source in the task somehow I created the jar and put the classes and antlib.xml in the same directory however when I try to pull it in it is complainning with the above error - here is my code (for the task)-

Re: Problems creating my own ant task

2010-11-04 Thread Alexey N. Solofnenko
Well, I am still adding custom tasks the old way: taskdef resource=net/sf/antcontrib/antcontrib.properties classpath pathelement location=lib/build/antcontrib/ant-contrib.jar/ /classpath /taskdef - Alexey. On 11/4/2010 1:09 PM, abridgel wrote: We need to write our own tasks because of

Re: Problems creating my own ant task

2010-11-04 Thread Dominique Devienne
On Thu, Nov 4, 2010 at 3:09 PM, abridgel andy.bridge...@gmail.com wrote: We need to write our own tasks because of portability issues. So I need to be able to source in the task somehow I created the jar and put the classes and antlib.xml in the same directory however when I try to pull it in

RE: How to script database upgrade using ANT script

2010-11-04 Thread Java Jboss
Hi Antoine, Thank you very much for providing me this example. unfortunately I've been asked to use ANT only without using unix shell scripts. I have tried to tackle it as individual modules using ANT script running the 1st iteration of the mysql scripts against newschema1. I need to run

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