Java Mailing List Archive

http://www.junlu.com/

Subjects
Home
mod jk2 https
Donation of JAXP 1 3 Sources to Apache
R annoyances
RE: Finding out when the aspnet admin worker process has recycled
Favorite Linux Distribution
eigenvalues of a circulant matrix
Apache Install
Reachin apache from outside
Ant should have an ext directory
Warning: Documentroot doesn 't exist
Can this be Done?
RE: Multilanguage Application
RE: Simple Question On setting up Sub Domain site
Lack of independence in anova()
How to close connection instead of sending 403?
winning the case for ANT
Re: adding php
New Ant GUI 'Ant 's Nest '
Narrowing Down A Strange Problem
Ant Task: sshexec
R Graph Gallery : categorization of the graphs
I 've been hacked, I need some help please
RE: Anyone working with DotNetNuke?
RE: Exception Handling Opinion
hex format
RE: IIS stopped working :(
<for > Build Failed:problem
RE: Separation of Objects from Logic
RE: Tracking pages with long request execution time
sending email to multiple destination
Web Site
ant UI
Easy cut & paste from Excel to R?
Win32 Apache Restart
Improving Tasks
HELP! PLEASE!
RE: Adding Controls to a Page
read table
RE: ASPNET account doesn 't exist!
Best way to uninstall Apache2 on red hat
from win to linux how to web page
XMLParseException changes and creation of XMLLocator2
Re Post: rewrite backslash to forward slash
Target or macrodef?
Page display problem XPSP2
Authentication problems
Dynamic Dictionary Data Type?
Newbie unable access my www from outside
off topic question: Latex and R in industries
Conflict between xtable and Hmisc when using Sweave?
Very old problem without any new solution
mod rewrite help
Basic Authentication question
RE: Code Security
calling ant from java program
prevent double signing
Re: Controlling Copy/Paste/Print
Using R to illustrate the Central Limit Theorem
web server slow too much slow
access to user directories
Links
Home
Official R Project Site
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
ant UI

ant UI

2004-12-21       - By Jacob, Anil - MWT
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Not very familiar with java, however given below is part of a perl
script which calls ANT, the -D parameters are actually input fields in a
html page. So when the user selects the fields they get passed on to the
perl script which is called in the action "POST" section of the hrml
page.

I guess you can easily use this concept to write a servlet which calls
ant from from a html page.The servlet can be deployed to tomcat.

--------------------

use CGI;
use CGI::Carp qw(fatalsToBrowser);

$cgi = new CGI;
print $cgi->header();
$version = $cgi->param(version);
$project = $cgi->param(project);
$server = $cgi->param(server);
$command = $cgi->param(command);
$servername = $cgi->param(servername);

system("ant -f /mybuilds/build.xml  -logger
org.apache.tools.ant.listener.MailLogger Source code of org.apache.tools.ant.listener.MailLogger -DDdev.build=$valuefromhtmlpage
$command");
}

Note: $command is the ant target that you want to execute, can also be
passed from the html page(like a submit button)
Anil

-----Original Message-----
From: Radha Sangal [mailto:Radha.Sangal@(protected)]
Sent: Tuesday, December 21, 2004 10:43 AM
To: Ant Users List
Subject: RE: ant UI

That helped ! command line arguments , I completely forgot about that.

Though now I need to write the script in java (language used here). We
do have tomcat here.

If you have any pointers over the same, would be gr8.
Xml-rpc was one tech but it doesn't handle "time ". what I mean to say
is, when I use this tech to run a bat file on (build)server2 from
(web)server1, it doesn't allow the user to nav till its done and that's
long time.

I think I need to digging more tech to solve this.


-----Original Message-----
From: Jacob, Anil - MWT [mailto:Jacob.Anil@(protected)]
Sent: Monday, December 20, 2004 6:17 PM
To: Ant Users List
Subject: RE: ant UI

Instead of hardcoding the value of the Build_0402_0012, you can actually
pass it as a commandline paramters -Ddev.build=Build_0402_0012. Then the
build file would look like this <property name="DevBuild1"
value="${dev.build}"/>

When ant runs it picks up the value given on the commandline.

For a UI. You can actually write a small perl script or cgi script to
execute ant over a browser, off course you need a web server also. Works
great.

Anil


-----Original Message-----
From: Radha Sangal [mailto:Radha.Sangal@(protected)]
Sent: Monday, December 20, 2004 11:48 AM
To: Ant Users List
Subject: RE: ant UI

Look at the bottom of the second link-ed page. I need to finally create
such UI where we enter filename in a text box and get results.

Meanwhile, what I am looking for is a way to build UI to connect to ant
script for providing inputs to its properties. To make it clear:

I have <property name="DevBuild1" value="Build_0402_0009"/>
    <property name="DevBuild2" value="Build_0402_0012"/> in
my ant script  I have to manually go inside the script and change these
properties for diff builds. I have to build a UI for it so that when I
enter build name there, it updates the property in ant script.

-----Original Message-----
From: Jacob Kjome [mailto:hoju@(protected)]
Sent: Friday, December 17, 2004 1:17 AM
To: Ant Users List
Subject: Re: ant UI

At 04:30 PM 12/16/2004 -0500, you wrote:
>Does Ant come with any user interface from where we can pass
parameters  >and see results on web explorer?

Use an XSLT.  Add something the following to your build file....

<?xml-stylesheet type="text/xsl" href="./ant2html.xsl"?>

After that, just create (or find it on the net) the stylesheet and open
the build.xml file in IE or Mozilla.  You should see a moderately decent
GUI

view of your build file.

See:
http://www-106.ibm.com/developerworks/xml/library/x-antxsl/
or
http://cvs.prevayler.codehaus.org/prevayler/ant2html.xsl

Note: it is only "text/xsl" because IE needs that value and it doesn't
break Mozilla, but there is no official mime-type named "text/xsl".

BTW, if it is graphical view of the dependencies that you are looking
for, try something like vizant.


Jake


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected) For additional
commands, e-mail: user-help@(protected)


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected) For additional
commands, e-mail: user-help@(protected)


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected) For additional
commands, e-mail: user-help@(protected)


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected) For additional
commands, e-mail: user-help@(protected)


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.