Just to add a few comments:
On 10/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
oh yes - we prefer new threads instead of thread-hijacking ;-)
Jan
>-----Ursprüngliche Nachricht-----
>Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Gesendet: Dienstag, 24. Oktober 2006 14:09
>An: dev@ant.apache.org
>Betreff: AW: failure notice
>
>>is it not possible to post mail with attaced zip-files to this list?
>
>not sure about that - but I think "no"
>
>>attachment is now temporarily avaiable at:
>>http://www.atlantisgmbh.de/download/HelpStudioAnt-0.1.0.zip
>
>thats the better way ;-)
>also so the mail boxes of the registered users keep small ...
>
>
>
>>I´ve written a task that allows a HelpStudio project to be compiled
>>using Ant. As this is my first ant project could anyone be so kind to
>>have a look at it with attention to code quality and formal
>>requirements?
>
>My few cents ...
>* you should have a buildfile
>* if possible, you should also have testcases
> - AntUnit
> - JUnit (maybe extending oata.BuildFileTest)
>* I would extract the lines 157-187 into a checkConfiguration() method
>* does it make sence to proceed with a failed configuration?
> - you invoce handleError() which will log the message when
>failonerror==false
> - I think handleError() should set a flag "hasError" so you
>could quit the job
> after the checks
>* line 247+250: we always use brackets .... you could use
>Checkstyle and Ants
> src/etc/checkstyle/checkstyle-config for verifying codestyle.
>* Maybe you want to implement the task as AntLib [1], then you
>could also find the
> common [2] module interesting ...
>
>
>
>>HelpStudio Ant Task
>>tested with Ant 1.6.5
>>license: GPL
>
>If ready, you could add it to [3] or provide a patch for [4]
>(see [5] for that).
>
>
>>I´ve attached the distribution as a zipfile (project is registered at
>>sourceforge - just needs acknowledgement).
>
>Maybe you are interested in continous integration using Gump [6].
>Write a gump descriptor [7] and mail it here - every ASF
>committer could add that to gumps metadata directory.
>
>
>
>>1)
>>I used nsisant.sf.net as a model. If necessary, in which form
>should I
>>state this in the source file or in the documentation?
>
>As "model"? Or more as "template"?
>For me it seems that you used nsisAnt for making a copy and
>modifying that (how was Erich Gammas wording? "Monkey see -
>Monkey do" )
>
Look at other task libraries as well, ant-contrib, xmltask
ant-unit, and the ant code.
>
>
>>2)
>>Can anybody tell me down to which ant version my task is compatible?
>>How could I easily find out?
>
>testing ...
>Could be compatible with Ant 1.5. But you have to test.
>I would not spend time on compatibility tests <1.5 and maybe not <1.6.
>Because we are in front of 1.7, compatibility with 1.6 (2003
>[8]) should be enough.
>
>
>
>>3)
>>One remaining problem is that command line arguments are
>automatically
>>escaped via " if they contain spaces. Now it is possible that a to be
>>compiled booklet has a space in it so the appropriate command line
>>would look like this:
>> helpstudio2.exe /bk="just a test" projectfile.hsp Unfortunately,
>>when I pass the option as /bk=just a test it gets converted to
>>"/bk=just a test" or /bk="just a test" gets converted to '/bk="just a
>>test"' and HelpStudio doesn´t recognize these.
>
>Who is escaping? Or is it just inside the debug log?
Hello to the wacky world of command line args in windows.
There are four levels of processing.
1) WIN32:CreateProcess this take in one string as a command line and
splits into an executable and a list of command line arguments. - so
it needs to handle " and ' to allow directories with spaces to be seen
as one arg.
2) java.lang.ProcessImpl this "normalizes" an array of arguments into
a single string, if an argument contains a space, the argument is
quoted with
a " (unless it is already "quoted").
3) org.apache.tools.ant.types.CommandLine.quoteArgument() - this is only
called on <arg line="a b c"/>, I think
4) the executable itself (or the C wrapper - in cygwin land).
>
>
>>4)
>>Patching
>>http://svn.apache.org/repos/asf/ant/core/trunk/xdocs/external.xml for
>>the "External Tools and Tasks" page: I´m using Eclipse
>>3.1 on Windows.
>>I know that I can create a patch to a file that is under
>>versioncontrol. Is there an easy way to create a patch besides
>>configuring the svn repository in Eclipse?
>
>You could also create the xml snippet ...
>
>
>
>>5)
>>Most of the variables are declared as protected because this is what
>>I´ve seen in nsisant. Is this preferred over private variables?
>
>Not sure about an Ant philosophy here, but protected variables
>support subclassing ...
Mmm, Ant "philosophy" is to have *ALL* variables as private.
>
>
>
>>6)
>>btw: Though using the GPL or any other opensource license, why do
>>people state a copyright in the source files? Shouldn´t this
>mean that
>>only this person is allowed to copy the code?
>>(I now just adopted this)
>
>AFAIK this is your code. You are the holder. You decide, who
>could use the code in which way. The GPL (nor any other
>OSS-license) does not change that.
Ant uses the apache licence, this means that anyone can
use the software in whatever manner they want.
>
>Inside Ant we dont have any @author statements any more. We
>have a contributor-file instead.
>Now we arent a group of individuals any more - now we are a team ;-)
>
>
>ok, these are my few cents ...
>
>Jan
>
>
>[1] http://ant.apache.org/manual-beta/CoreTypes/antlib.html
>[2] http://svn.apache.org/viewvc/ant/antlibs/common/trunk/
>[3] http://wiki.apache.org/ant/AntExternalTaskdefs
>[4] http://ant.apache.org/external.html
>[5] http://ant.apache.org/faq.html#adding-external-tasks
>[6] http://gump.apache.org/
>[7] Gump DD examples
> * https://svn.apache.org/repos/asf/gump/metadata/project/args4j.xml
> *
>https://svn.apache.org/repos/asf/gump/metadata/project/antbook.xml
>[8] http://ant.apache.org/faq.html#history
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED] For
>additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]