Can we load task into Ant Core classloader

2007-10-10 Thread Vishal Vishnoi
I would like to use loadref attribute of taskdef to load a given task into Ant's Core classloader. Is this possible? I've gone through Ant's manual and also some Google search results, but none of them talk about any predefined loadref for Ant's core loader. Thanks, --Vishal Notice: This ema

Re: AW: specifying jvm for running ant tasks

2007-03-16 Thread Vishal Vishnoi
Here's a snippet (from a macrodef and hence @{..}) of what I do when I need to exec Ant --Vishal thomaslarsson wrote: Thanks Jan but you misunderstand me. Its not java or javac task that I wan

http://ant.apache.org/manual/api/index.html displays "Not Found" for javadoc

2007-01-12 Thread Vishal Vishnoi
___ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally

Re: How to preserve a property assigned via antcall on main build process?

2006-10-16 Thread Vishal Vishnoi
I used to be in the same boat sometime back, where I thought using ant-contrib is building too many external dependency. Over time I've realized that Ant-contrib is very stable and complements Ant very well. If you need to use 'if', then use 'if'. Don't fight it, otherwise you will end up with

Re: Antcall task and inheriting Filters

2006-09-14 Thread Vishal Vishnoi
Have you considered using Ant-contrib's (http://ant-contrib.sourceforge.net/tasks/tasks/index.html) runtarget task (http://ant-contrib.sourceforge.net/tasks/tasks/runtarget.html) which is similar to AntCall but with the big difference where the target is run as part of the same project. --Vis

Re: format for excludes on javac

2006-08-10 Thread Vishal Vishnoi
Martin, FYI: Checkout http://ant.apache.org/manual/CoreTasks/javac.html for all information about Javac task. --Vishal Ant manual -> http://ant.apache.org/manual/index.html Martin Gainty wrote: yes that worked Asante- Martin ***

Re: Setting the value of a property conditonally

2006-08-04 Thread Vishal Vishnoi
I'm a very satisfied customer of ant-contrib task for the type of use case defined in this thread. While I understand what Ant was originally written for, but the reality is it has grown and thankfully ant-contrib(http://ant-contrib.sourceforge.net/tasks/tasks/index.html) takes care of ad

Re: How to send a data from ant to JUnit class?

2006-08-03 Thread Vishal Vishnoi
Use sysproperty nested element in http://ant.apache.org/manual/OptionalTasks/junit.html. In Java access them using System.getProperty --Vishal ahehheh wrote: Hi, i am now working with ant to test several Junit classes. One of Junit classes is Log In command, and this uses a specific id and p

Re: Am I being a silly - or is there an antcall bug?

2006-07-24 Thread Vishal Vishnoi
Nick, If you want to call a target within the same project. Use Ant-contrib's runtarget task (http://ant-contrib.sourceforge.net/tasks/tasks/index.html). Since the call is in the same project, any property you set in the called target is also visible to caller If you want AntCall like behav

Re: Ant tasks to encrypt or decrypt passwords from propertyfiles

2006-06-20 Thread Vishal Vishnoi
For the case of prompting user for password, you can also consider using AntForm (http://antforms.sourceforge.net/index.html) to have simple swing ui in which use can enter password. --Vishal Petar Tahchiev wrote: On 20/06/06, Rebhan, Gilbert <[EMAIL PROTECTED]> wrote: But remember, if

Re: AW: getLocation of imported target in Ant 1.6.2

2006-06-12 Thread Vishal Vishnoi
I just want to write a Ant utility method, which given a target will figure its location correctly. No change will be made to the ant implementation. --Vishal Steve Loughran wrote: Vishal Vishnoi wrote: I'll look into updating, but that can be a painfully long process, as it would re

Re: AW: getLocation of imported target in Ant 1.6.2

2006-06-12 Thread Vishal Vishnoi
I'll look into updating, but that can be a painfully long process, as it would require a long certification process. I don't mind writing a helper utility method that will do the needful for me. Can you point me to the source code where the fix was made in 1.6.5 I'm thing of one workaround, w

getLocation of imported target in Ant 1.6.2

2006-06-10 Thread Vishal Vishnoi
In Ant 1.6.2, the location of an imported target (target.getLocation) is not set. Is there some workaround that I can use to get the location. I verified that above problem is fixed in 1.6.5, but I need to get this working in 1.6.2 --Vishal ___

Re: Ant Task for Creating weblogic domain

2006-05-01 Thread Vishal Vishnoi
Look at http://edocs.bea.com/wls/docs81/admin_ref/ant_tasks.html --V Petar Tahchiev wrote: On 28/04/06, Anderson, Rob (Global Trade) <[EMAIL PROTECTED]> wrote: If there is such a task, it is not part of the standard Ant distribution. Check with BEA or search the weblogic documentation. -Rob

Re: AntUnit tests need fully-qualified names

2006-02-28 Thread Vishal Vishnoi
Stefan Bodewig wrote: On Thu, 23 Feb 2006, Vishal Vishnoi <[EMAIL PROTECTED]> wrote: Thus, the above can be the default, as it's simple and work for most people. AntUnit should consider providing an attribute which make naming a combination of project and target name. Here&#

Re: AntUnit tests need fully-qualified names

2006-02-23 Thread Vishal Vishnoi
Vladimir Egorov wrote: Stefan, thanks for your reply. Yes, printing the build file makes things clear for an isolated run. But if you want to compare runs across various systems, you need a fully-qualified test name that does not depend on the system. The absolute path to build file depends on t