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.
Improving Tasks

Improving Tasks

2004-10-22       - By Rhino
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Jan,

Your entire reply was very useful but I have a followup question re Question
2: if the existing <input> task can display a textfield with two buttons in
a popup dialog, shouln't I be able to do the same thing with radio buttons
or drop down lists instead of a textfield?

Rhino

----- Original Message -----
From: <Jan.Materne@(protected)>
To: <user@(protected)>
Sent: Friday, October 22, 2004 9:49 AM
Subject: AW: Improving Tasks


> I'm starting to get the hang of Ant now and am starting to think about
developing some tasks to
> increase what it can do.

I suggest reading these manual entries
- http://ant.apache.org/manual/developlist.html
- http://ant.apache.org/manual/tutorial-writing-tasks.html
-
http://cvs.apache.org/viewcvs.cgi/*checkout*/ant/docs/manual/tutorial-tasks-
filesets-properties.html?content-type=text/plain



> However, before I start developing entirely new tasks, I thought I might
take a whack at improving a
> few existing tasks. One improvement I'm thinking about involves the core
task <input>. I'd like to
> enhance it in a couple of ways:
> 1. Provide for a masked input field so that it could be used to prompt for
a password that would remain
> unreadable to anyone looking over the users shoulder. (I envision adding a
'mask="true"' parameter to
> make that possible with the default for 'mask' being 'false'.)

<input> provides InputHandler for these.
For masking see the article at
http://java.sun.com/developer/technicalArticles/Security/pwordmask/



> 2. I'm thinking about adding the capability of having a radio button group
and/or drop down lists
> so that there are some additional ways for users to provide input.

Radio buttons usually are part of a graphical UI - Ant has no. So good luck
for porting
that to command line :)



> How would I get my hands on the source code for the existing task without
stepping on anyone's toes?

Download the source and modifiy it as it suites your needs.
If think it works, open a Bug and apply the path (dont forget the docs and
tests!).
And maybe a committer will commit that ...

Before the commit noone (except you) will have that and after everyone.


> Would my enhancements have to be approved in advance or would I submit
them and then go through some
> kind of voting process by Ant users with my changes discarded if I didn't
"win" the vote?

If your patch wont be accepted (by committers, not by users) you can do
another thing:
bundle that class in a jar, create a antlib.xml and provide that as external
task. Maybe you
will change the package name then.


>What testing would I have to do to satisfy the Ant community that my code
was clean enough to implement?

JUnit test. See the testcases for the other tasks.
You can do more or less - more is better :)
There is no guideline how much you _have_ to test...


> Or should I develop an entirely new task with the intent of deprecating
<input> and replacing it with
> my 'better' task (assuming I can get it to work ;-)?

As an external library. Advantage: you are your own committer :)


> By the way, is this the right list for these sorts of questions or should
I be asking on the
> developers list?

AFAIK the committers are listening here also, so chances are good to get an
answer.

There is no real frontier between user and developer - so post as you think.
IMHO these can go to DEV, but it?s not unusual here...


Jan


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


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