ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nan Null" <>
Subject Re: Include XML file
Date Thu, 25 Sep 2008 14:20:48 GMT
I think you have a communication problem.

Here's how I understand your problem: you have a web application, with
a webpage (written in JSP) that you can submit a .java source file.
When a user submit the .java source file, you need to process the file
using Ant.

If that is the case, then you need a few things.  First, either the
user needs to submit the build.xml file, or you can create the file.
You can do that, by hand, or programatically, depending on your need.
Once you have the build.xml file, you can call (System.execute) Ant,
passing in the path of the build file and the jsp.  The JSP file can
be passed in as an environment variable (-Djsp.file=<filename>).  Then
you can access it in the Ant using ${env.jsp.file} (you have to
declare env, <property environment="env"/>).

On Thu, Sep 25, 2008 at 5:12 AM, Jan K <> wrote:
> I am designing a web application For running Automated test.I record the flow
> of an application (say using Selenium IDE and exporting the test
> suite to java.So now i have a file For example application i
> am creating
> is like i will have a browse button.i will browse for file (say
> and click run button.On clicking run button ,i will pass the action through
> request parameter to jsp.
> Example:
> if ( run.equals(request.getParameter(action))) {
> // Call Build.xml
> }
> I need to call Ant Build.xml file.Because this site is more specific for
> uploading of selenium files only.Selenium server supports Ant to do this.So
> only i need to call Build.xml.Can you understand and help me to solve the
> problem.
> Ognjen Blagojevic wrote:
>> Jan K wrote:
>>> I am developing a project for Testing Automated Test.I am using selenium
>>> server for running the test.So when i upload a test(say for example
>>> , and click Run button,through request parameter i get the
>>> action and need to invoke Ant build.xml file because selenium make use of
>>> Ant to run the test.So i need to know how to do this?
>>> Jan K wrote:
>>>> I need to include ant (build.xml) file in JSP.Can anyone help me to do
>>>> this?
>> This is still very unclear...
>> Could you explain this a little bit more? How do you use Selenium? Is it
>> Selenium IDE as browser plugin or something else?
>> Where do you upload a test? To Selenium IDE?
>> What is the action you get as request parameter?! Is it the name of the
>> target you need invoke in ant task?
>> -Ognjen
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:
> --
> View this message in context:
> Sent from the Ant - Users mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message