[Ant Wiki] Updated: FrontPage
Date: 2004-02-19T07:19:00 Editor: 130.89.169.128 <> Wiki: Ant Wiki Page: FrontPage URL: http://wiki.apache.org/ant/FrontPage no comment Change Log: -- @@ -5,6 +5,12 @@ This wiki has just been set up as part of the [wiki:ApacheGeneral:FrontPage big Apache Wiki Farm]. It does not contain anything yet. += Migrated data = + +Somewhat stale (~november 2003) and somewhat incomplete pages that were migrated from the UseMod wiki to http://wiki.apache.org/old/ have been copied to this wiki. Some manual editing is likely neccessary. + +In particular, take a look at the old index for ant at UseMod, the AntProjectPages. You may want to copy the materials from that page to the front page. + = 'Special' Wiki pages = '''TitleIndex''' - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Ant Wiki] Updated: FrontPage
Date: 2004-02-24T04:06:17 Editor: 218.214.49.176 <> Wiki: Ant Wiki Page: FrontPage URL: http://wiki.apache.org/ant/FrontPage no comment Change Log: -- @@ -3,7 +3,34 @@ = Welcome to the Ant Wiki = -This wiki has just been set up as part of the [wiki:ApacheGeneral:FrontPage big Apache Wiki Farm]. It does not contain anything yet. +The Ant Wiki is currently being migrated and so a few things are still in a state of disrepair. + +http://ant.apache.org/images/ant_logo_large.gif + +Project Page: http://ant.apache.org/ + + + + * /ExternalResources + + * AntModules + + * AntTutorials + + * AntUsageGuides + + * AntInternals + + * AntProgrammingGuides + + * AntDesignIssues + + * AntOddities + + * NewAntFeaturesInDetail + + * /Proposals + = Migrated data = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Ant Wiki] Updated: FrontPage
Date: 2004-02-24T04:07:58 Editor: 218.214.49.176 <> Wiki: Ant Wiki Page: FrontPage URL: http://wiki.apache.org/ant/FrontPage no comment Change Log: -- @@ -31,6 +31,8 @@ * /Proposals + * AntManualPDF + = Migrated data = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Ant Wiki] Updated: FrontPage
Date: 2004-02-24T04:24:09 Editor: 218.214.49.176 <> Wiki: Ant Wiki Page: FrontPage URL: http://wiki.apache.org/ant/FrontPage no comment Change Log: -- @@ -31,7 +31,7 @@ * /Proposals - * AntManualPDF + * ["AntManualPDF"] = Migrated data = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Ant Wiki] New: AntManualPDF
Date: 2004-02-24T04:25:04 Editor: 218.214.49.176 <> Wiki: Ant Wiki Page: AntManualPDF URL: http://wiki.apache.org/ant/AntManualPDF no comment New Page: The ant manual as a PDF document: http://www.tek271.com/articles/ant/ant.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Ant Wiki] Updated: FrontPage
Date: 2004-02-28T17:41:28 Editor: 218.214.49.176 <> Wiki: Ant Wiki Page: FrontPage URL: http://wiki.apache.org/ant/FrontPage no comment Change Log: -- @@ -11,7 +11,7 @@ - * /ExternalResources + * ExternalResources * AntModules - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Ant Wiki] New: ExternalResources
Date: 2004-02-28T17:47:44 Editor: 218.214.49.176 <> Wiki: Ant Wiki Page: ExternalResources URL: http://wiki.apache.org/ant/ExternalResources no comment New Page: Ant´s own [http://ant.apache.org/resources.html resource page] lists a lot of links, books and articles. Here are some more. = Books = * ''Java Development with Ant'' by ErikHatcher, SteveLoughran published by Manning Publications -http://www.manning.com/hatcher/index.html * ''Ant: The Definitive Guide'' by Jesse E. Tilly and Eric M. Burke published by O'Reilly - http://www.oreilly.com/catalog/anttdg/ * ''Java Tools for Extreme Programming: Mastering Open Source Tools, Including Ant, JUnit, and Cactus'' by Richard Hightower, Nicholas Lesiecki ( ErikHatcher contributed to Ant sections ) published by John Wiley & Sons, Inc. - http://www.wiley.com/cda/product/0,,047120708X,00.html = Documentation = * Appendix E of ''Java Development with Ant'' is included in the Ant 1.5.1 distribution * Ant 1.5.1 Core Task Examples Quick Reference: http://www.discursive.com/articles/2003/01/ant_core_ref.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Ant Wiki] Updated: AntModules
Date: 2004-02-28T17:48:44 Editor: 218.214.49.176 <> Wiki: Ant Wiki Page: AntModules URL: http://wiki.apache.org/ant/AntModules no comment Change Log: -- @@ -2,7 +2,5 @@ * the [http://cvs.apache.org/viewcvs/ant/ ant] CVS module contains the primary Ant project. - * the [http://cvs.apache.org/viewcvs.cgi/ant-myrmidon/ ant-myrmidon] CVS module contains a reimplementation of Ant that has since been abandoned. - * the [http://cvs.apache.org/viewcvs.cgi/ant-antidote/ ant-antidote] CVS module contains source code for a GUI application called Antidote, which is intended for editing Ant build files. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Ant Wiki] Updated: AntTutorials
Date: 2004-02-28T17:49:50 Editor: 218.214.49.176 <> Wiki: Ant Wiki Page: AntTutorials URL: http://wiki.apache.org/ant/AntTutorials no comment Change Log: -- @@ -1 +1,2 @@ * [wiki:AntTutorialWritingTasks Tutorial "Writing Tasks"] + * [http://www-106.ibm.com/developerworks/java/edu/j-dw-java-apant-i.html?S_TACT=104AHW02&S_CMP=ZHP "Apache Ant 101: Make Java builds a snap" on IBM Developerworks] by Matt Chapman from December 2003. Needs registration. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Ant Wiki] Updated: FrontPage
Date: 2004-02-28T17:53:21 Editor: 218.214.49.176 <> Wiki: Ant Wiki Page: FrontPage URL: http://wiki.apache.org/ant/FrontPage no comment Change Log: -- @@ -19,6 +19,8 @@ * AntUsageGuides + * AntSampleFiles + * AntInternals * AntProgrammingGuides - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Ant Wiki] New: AntSampleFiles
Date: 2004-02-28T17:54:31 Editor: 218.214.49.176 <> Wiki: Ant Wiki Page: AntSampleFiles URL: http://wiki.apache.org/ant/AntSampleFiles no comment New Page: It would be nice to have some sample Ant build.xml files so that novices can learn good style and so that people experienced with old versions can see better ways to do things. * [http://cvs.apache.org/viewcvs.cgi/*checkout*/ant/build.xml?content-type=text%2Fplain&rev=1.392.2.14 Ant's own build.xml, v 1.6] * [http://cvs.apache.org/viewcvs.cgi/ant/build.xml?view=auto current build.xml for the Ant project] * I created a buildfile for doing some things more comfortable. The result I called AntUtil. Maybe not the best style, but it shows, that you can do more things with Ant that you thought ... Do you have an Ant build.xml file you like? Add it here. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Ant Wiki] New: AntUtil
Date: 2004-02-28T18:08:03 Editor: 218.214.49.176 <> Wiki: Ant Wiki Page: AntUtil URL: http://wiki.apache.org/ant/AntUtil no comment New Page: == Preface == After doing things over and over I usually intend to automate that. In earlier time I wrote (windows) batch files. But since some months sometimes I do that with Ant. Sometimes also things Ant was never designed for ... == Installation == On my machine I have a directory c:\bin which is listed in the %PATH% variable, so I can invoke shell command whereever I am. The AntUtil contains several files: the buildfile, the batchfile and an optional propertyfile. Additionally some targets require template files. == antutil.bat == {{{ rem Simply invoke Ant and store the currend directory as Ant property. @echo off ant -buildfile c:\bin\antutil.xml %* -DcurDir="%CD%" }}} == antutil.properties == {{{ # used to save common settings # on my machine empty }}} == antutil.xml == {{{ Start Notepad and wait for its end. Create ZIP-File ${zipname}.zip Start Notepad and wait for its end. Load files Please enter some required data for generating the files: zipOpen Notepad and zip all pattern -Dzipname name of the zipfile (without suffif) in curDir -Dfiles2zip name of pattern file create Create a build.xml and build.properties mkp, mkproject Create a small build.xml for tests download Open Notepad and load all specified files (URI=dest). == buildxml.xml-template-small.xml == == buildxml.bat-template.txt == @echo off echo [EMAIL PROTECTED]@>create.txt echo [EMAIL PROTECTED]@>>create.txt call antutil -Dcreate.file=create.txt create del create.txt == buildxml.prop-template.properties == # Property file for @projectName@ #-- # Version of the program version=1.0 # Directory settings # # Suggestions of "Java Development with Ant" - Appendix D - p.551 # for directory structure (used by target 'seed'). # Additionals from Appendix D: p.558 (test specific) # # Temporary staging area for classes and more build.dir=build # Directory containing java *.class files and resources, ready for packaging. build.classes.dir=${build.dir}/classes # Directory for junit test classes and resources, ready for runned by junit. test.classes.dir=${build.dir}/test # Distribution directory dist.dir=dist # Documentation files stored in their presentation formats docs.dir=docs # Sample files etc.dir=etc # Project dependencies, typically third-party .jar files lib.dir=lib # Root directory of all Sources src.dir=src # Directory for application: Java source code, package directory below # whithout test file # # Adapted from Ant´s own buildfile java.dir=${src.dir}/main # Directory where the JUnit-Tests lie. test.src.dir=${src.dir}/test/junit # Directory for test data, e.g. input data and expected results test.data.dir=${src.dir}/test/data # Documentation in XML format, to be transformed into presentation # format during the build process xdocs.dir=${src.dir}/xdocs # Metadata for the JAR file metainf.dir=${src.dir}/META-INF
[Ant Wiki] Updated: AntInternals
Date: 2004-02-28T18:08:41 Editor: 218.214.49.176 <> Wiki: Ant Wiki Page: AntInternals URL: http://wiki.apache.org/ant/AntInternals no comment Change Log: -- @@ -2,4 +2,4 @@ Here is a description of the process Ant goes through when setting up tasks to be run: -{{{[http://codefeed.com/tutorial/ant_config.html Task Configuration in Ant] }}} +[http://codefeed.com/tutorial/ant_config.html Task Configuration in Ant] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Ant Wiki] Updated: AntProgrammingGuides
Date: 2004-02-28T18:10:04 Editor: 218.214.49.176 <> Wiki: Ant Wiki Page: AntProgrammingGuides URL: http://wiki.apache.org/ant/AntProgrammingGuides no comment Change Log: -- @@ -1,3 +1,3 @@ This page contains links to documents that describe how to program new features into Ant. This includes the creation of new tasks, conditions, selectors, and filters. - * http://ant.apache.org/ant_task_guidelines.html + * [http://ant.apache.org/ant_task_guidelines.html] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Ant Wiki] Updated: AntOddities
Date: 2004-02-28T18:14:14 Editor: 218.214.49.176 <> Wiki: Ant Wiki Page: AntOddities URL: http://wiki.apache.org/ant/AntOddities no comment Change Log: -- @@ -1,44 +1,44 @@ -==s strange behaviour == +== 's strange behaviour == -Here is an oddity whose solution was discovered by Jan Matèrne. In Ant, what is the simplest way to get a that contains only files that do '''not''' have an extension in a directory tree. +Here is an oddity whose solution was discovered by Jan Matèrne. In Ant, what is the simplest way to get a that contains only files that do '''not''' have an extension in a directory tree. You might think you could just specify that the included files end in a period, like so: -{{{ }}} +{{{ }}} but that will only select files which literally end in a period. The actual answer is a bit counterintuitive. You select all files (implicit) and then exclude those that have an extension: -{{{ }}} +{{{ }}} == Changing default Locale == When I worked with CheckStyle I realized that there are localized message. So far so fine. But now I want to generate an international (English) site on my (German) machine. But how to realize that? -CheckStyle - like many other programs - uses the java.util.ResourceBundle.getBundle() method which returns the appropriate bundle for the '''default''' Locale. So I will set the default Locale to the US value. Before that I store the actual one (or the 'key') as property and restore that after invoking CheckStyle. Because I need (simple) access to the Java API, I write that inside