Command line option to set entity resolver implementation class
Would it be possible to add a command line option to set an entity resolver to Ant? I ask because projects I work on have many Ant build scripts that use common target definitions which we include via external entities, as in: http://web/devtools/src/ant/prologue.ant";> http://web/devtools/src/ant/targets.ant";> %targets; ]> But we'd like to be able to change the deployment URIs by overriding them in an XML catalog, instead of editing many Ant scripts. The xmlcatalog task does not fit the bill for this, since it does not provide catalog resolution for the parser instance that Ant, itself is using. I could even implement the change myself, but only if it would be accepted. Thanks, -Chris __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant/docs bindownload.html srcdownload.html
chrisw 2003/10/13 01:36:45 Modified:xdocsbindownload.xml srcdownload.xml docs bindownload.html srcdownload.html Log: Fix problem with distributions relation to the nav tree - -tag content has to match the name of the Nav entry. Revision ChangesPath 1.20 +1 -1 ant/xdocs/bindownload.xml Index: bindownload.xml === RCS file: /home/cvs/ant/xdocs/bindownload.xml,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- bindownload.xml 12 Oct 2003 19:39:53 - 1.19 +++ bindownload.xml 13 Oct 2003 08:36:44 - 1.20 @@ -2,7 +2,7 @@ -Binary Distribution +Binary Distributions 1.18 +1 -1 ant/xdocs/srcdownload.xml Index: srcdownload.xml === RCS file: /home/cvs/ant/xdocs/srcdownload.xml,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- srcdownload.xml 12 Oct 2003 19:39:53 - 1.17 +++ srcdownload.xml 13 Oct 2003 08:36:44 - 1.18 @@ -2,7 +2,7 @@ -Source Distribution +Source Distributions 1.40 +4 -4 ant/docs/bindownload.html Index: bindownload.html === RCS file: /home/cvs/ant/docs/bindownload.html,v retrieving revision 1.39 retrieving revision 1.40 diff -u -r1.39 -r1.40 --- bindownload.html 12 Oct 2003 19:39:52 - 1.39 +++ bindownload.html 13 Oct 2003 08:36:45 - 1.40 @@ -5,7 +5,7 @@ -Apache Ant - Binary Distribution +Apache Ant - Binary Distributions @@ -119,8 +119,8 @@ Download -http://ant.apache.org/bindownload.cgi";>Binary Distributions - + Binary Distributions + http://ant.apache.org/srcdownload.cgi";>Source Distributions @@ -169,7 +169,7 @@ -Binary Distribution +Binary Distributions Downloading Ant 1.39 +4 -4 ant/docs/srcdownload.html Index: srcdownload.html === RCS file: /home/cvs/ant/docs/srcdownload.html,v retrieving revision 1.38 retrieving revision 1.39 diff -u -r1.38 -r1.39 --- srcdownload.html 12 Oct 2003 19:39:52 - 1.38 +++ srcdownload.html 13 Oct 2003 08:36:45 - 1.39 @@ -5,7 +5,7 @@ -Apache Ant - Source Distribution +Apache Ant - Source Distributions @@ -122,8 +122,8 @@ http://ant.apache.org/bindownload.cgi";>Binary Distributions -http://ant.apache.org/srcdownload.cgi";>Source Distributions - + Source Distributions + Contributing @@ -169,7 +169,7 @@ -Source Distribution +Source Distributions Downloading Ant - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant/xdocs/projects/antidote news.xml
chrisw 2003/10/12 12:39:54 Modified:docs bylaws.html bindownload.html resources.html antnews.html faq.html cvs.html projects.html legal.html mail.html problems.html mission.html contributors.html srcdownload.html license.html index.html external.html docs/projects/antidote index.html module.html design.html xdocs/stylesheets project.xml templates.vm docs/projects index.html xdocsbylaws.xml bindownload.xml srcdownload.xml Added: docs/projects/antidote news.html xdocs/projects/antidote news.xml Log: "Beautify" position of ApacheCon banner in navigation and add Antidote News Page Revision ChangesPath 1.5 +7 -5 ant/docs/bylaws.html Index: bylaws.html === RCS file: /home/cvs/ant/docs/bylaws.html,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- bylaws.html 23 Sep 2003 11:04:09 - 1.4 +++ bylaws.html 12 Oct 2003 19:39:52 - 1.5 @@ -5,7 +5,7 @@ -Apache Ant - Apache Ant Project Bylaws +Apache Ant - Project Bylaws @@ -73,10 +73,12 @@ + http://apachecon.com/2003/US/index.html";> http://jakarta.apache.org/images/logos/ac2003-150.gif"/> + Apache Ant @@ -152,8 +154,8 @@ Apache Ant Mission -Project Bylaws - + Project Bylaws + Legal @@ -163,11 +165,11 @@ - + -Apache Ant Project Bylaws +Project Bylaws Apache Ant Project Bylaws 1.39 +5 -3 ant/docs/bindownload.html Index: bindownload.html === RCS file: /home/cvs/ant/docs/bindownload.html,v retrieving revision 1.38 retrieving revision 1.39 diff -u -r1.38 -r1.39 --- bindownload.html 30 Sep 2003 13:36:41 - 1.38 +++ bindownload.html 12 Oct 2003 19:39:52 - 1.39 @@ -5,7 +5,7 @@ -Apache Ant - Downloading Ant - Binary Distribution +Apache Ant - Binary Distribution @@ -73,10 +73,12 @@ + http://apachecon.com/2003/US/index.html";> http://jakarta.apache.org/images/logos/ac2003-150.gif"/> + Apache Ant @@ -163,11 +165,11 @@ - + -Downloading Ant - Binary Distribution +Binary Distribution Downloading Ant 1.68 +3 -1 ant/docs/resources.html Index: resources.html === RCS file: /home/cvs/ant/docs/resources.html,v retrieving revision 1.67 retrieving revision 1.68 diff -u -r1.67 -r1.68 --- resources.html23 Sep 2003 11:04:09 - 1.67 +++ resources.html12 Oct 2003 19:39:52 - 1.68 @@ -75,10 +75,12 @@ + http://apachecon.com/2003/US/index.html";> http://jakarta.apache.org/images/logos/ac2003-150.gif"/> + Apache Ant @@ -165,7 +167,7 @@ - + 1.80 +3 -1 ant/docs/antnews.html Index: antnews.html === RCS file: /home/cvs/ant/docs/antnews.html,v retrieving revision 1.79 retrieving revision 1.80 diff -u -r1.79 -r1.80 --- antnews.html 30 Sep 2003 13:07:57 - 1.79 +++ antnews.html 12 Oct 2003 19:39:52 - 1.80 @@ -79,10 +79,12 @@ + http://apachecon.com/2003/US/index.html";> http://jakarta.apache.org/images/logos/ac2003-150.gif"/> + Apache Ant @@ -169,7 +171,7 @@ - + 1.80 +3 -1 ant/docs/faq.html Index: faq.html === RCS file: /home/cvs/ant/docs/faq.html,v retrieving revision 1.79 retrieving
cvs commit: ant-antidote/src/java/org/apache/tools/ant/gui About.java
chrisw 2003/10/12 11:30:02 Modified:src/java/org/apache/tools/ant/gui/resources antidote.properties src/java/org/apache/tools/ant/gui/core ActionManager.java src/java/org/apache/tools/ant/gui/command ShowOrHideConsoleCmd.java src/java/org/apache/tools/ant/gui/modules Reopener.java src/java/org/apache/tools/ant/gui About.java Added: src/java/org/apache/tools/ant/gui/resources antidote_de.properties action_de.properties empty.gif Log: German i18n, i18n completion and fixes. Revision ChangesPath 1.8 +3 -1 ant-antidote/src/java/org/apache/tools/ant/gui/resources/antidote.properties Index: antidote.properties === RCS file: /home/cvs/ant-antidote/src/java/org/apache/tools/ant/gui/resources/antidote.properties,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- antidote.properties 13 Jan 2003 13:31:24 - 1.7 +++ antidote.properties 12 Oct 2003 18:30:02 - 1.8 @@ -153,8 +153,10 @@ org.apache.tools.ant.gui.About.antVersion=Ant Version org.apache.tools.ant.gui.About.antDate=Ant Build Date org.apache.tools.ant.gui.About.message=\ - Copyright © 2003 The Apache Software Foundation. All rights reserved.For more informations visit ant.apache.org + Copyright © 2003 The Apache Software Foundation. All rights reserved.For more informations visit http://ant.apache.org org.apache.tools.ant.gui.About.operatingSystem=Operating System org.apache.tools.ant.gui.About.freeMemory=Free Memory org.apache.tools.ant.gui.About.totalMemory=Total Memory +org.apache.tools.ant.gui.About.info=Info +org.apache.tools.ant.gui.About.about=About 1.1 ant-antidote/src/java/org/apache/tools/ant/gui/resources/antidote_de.properties Index: antidote_de.properties === # This is the general properties file for the Antidote application. #debug=true # The following four module properties configure those properties that # should be initialized and displayed by default by the GUI. If more # than one module is configured for a property (as indicated providing # class names as a comma delimited list), then each module will appear # in its own tab in a JTabbedPane. # Configure the modules that appear on the right of the UI. org.apache.tools.ant.gui.Antidote.right.modules=\ org.apache.tools.ant.gui.modules.edit.PropertyEditor # Configure the modules that appear on the left of the UI. org.apache.tools.ant.gui.Antidote.left.modules=\ org.apache.tools.ant.gui.modules.edit.ElementNavigator # Configure the modules that appear on the bottom of the UI. org.apache.tools.ant.gui.Antidote.bottom.modules=\ org.apache.tools.ant.gui.modules.console.BuildConsole # Configure the modules that appear on the top of the UI. org.apache.tools.ant.gui.Antidote.top.modules=\ org.apache.tools.ant.gui.modules.TargetMonitor org.apache.tools.ant.gui.modules.edit.PropertyEditor.name=Properties # Configure the modules that do not have a UI. org.apache.tools.ant.gui.Antidote.hidden.modules=\ org.apache.tools.ant.gui.modules.ProjectMonitor,\ org.apache.tools.ant.gui.modules.Reopener # Configure the Reopener module org.apache.tools.ant.gui.modules.Reopener.menuName=Erneut öffnen org.apache.tools.ant.gui.modules.Reopener.icon=empty.gif org.apache.tools.ant.gui.modules.Reopener.insertAfterMenuName=Öffnen # DependentTargetChooser part of the DependentTargetPropertyEditor org.apache.tools.ant.gui.modules.edit.DependentTargetChooser.ok=OK org.apache.tools.ant.gui.modules.edit.DependentTargetChooser.cancel=Abbrechen org.apache.tools.ant.gui.modules.edit.DependentTargetChooser.target=Target org.apache.tools.ant.gui.modules.edit.DependentTargetChooser.description=Beschreibung org.apache.tools.ant.gui.modules.edit.DependentTargetChooser.upIcon=up.gif org.apache.tools.ant.gui.modules.edit.DependentTargetChooser.downIcon=down.gif org.apache.tools.ant.gui.modules.edit.DependentTargetChooser.addIcon=enter.gif org.apache.tools.ant.gui.modules.edit.DependentTargetChooser.removeIcon=exit.gif org.apache.tools.ant.gui.modules.edit.DependentTargetChooser.up=Target nach oben schieben org.apache.tools.ant.gui.modules.edit.DependentTargetChooser.down=Target nach unten schieben org.apache.tools.ant.gui.modules.edit.DependentTargetChooser.add=Target hinzufügen org.apache.tools.ant.gui.modules.edit.DependentTargetChooser.remove=Target entfernen org.apache.tools.ant.gui.modules.edit.DependentTargetChooser.selection=Auswahl org.apache.tools.ant.gui.modules.edit.ElementNavigator.name
cvs commit: ant-antidote/src/java/org/apache/tools/ant/gui/xml XMLWriter.java
chrisw 2003/10/07 09:39:59 Modified:src/java/org/apache/tools/ant/gui/xml XMLWriter.java Log: Cleans up a little more how a comment gets persisted to an XML-File. Revision ChangesPath 1.6 +7 -1 ant-antidote/src/java/org/apache/tools/ant/gui/xml/XMLWriter.java Index: XMLWriter.java === RCS file: /home/cvs/ant-antidote/src/java/org/apache/tools/ant/gui/xml/XMLWriter.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- XMLWriter.java5 Oct 2003 19:31:07 - 1.5 +++ XMLWriter.java7 Oct 2003 16:39:59 - 1.6 @@ -720,6 +720,12 @@ write(""); + +// This next so that comments at elementLevel == 0 +// (outside the project element) get a newline after each. +if (elementLevel < 1) { +writeln(); + } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant-antidote/src/java/org/apache/tools/ant/gui/core ProjectManager.java
chrisw 2003/10/05 12:43:49 Modified:src/java/org/apache/tools/ant/gui/core ProjectManager.java Log: Fixed bug persisting project, but not entire document! PR: Bug reported by Jack Woehr via mailig list! Revision ChangesPath 1.7 +4 -2 ant-antidote/src/java/org/apache/tools/ant/gui/core/ProjectManager.java Index: ProjectManager.java === RCS file: /home/cvs/ant-antidote/src/java/org/apache/tools/ant/gui/core/ProjectManager.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- ProjectManager.java 10 Feb 2003 14:35:02 - 1.6 +++ ProjectManager.java 5 Oct 2003 19:43:49 - 1.7 @@ -174,7 +174,9 @@ } // Persist the project. -project.write(out); +// Call the write method of the parent node (document) do persist document related tags +// and not only the project! +project.getParentNode().write(out); out.flush(); project.setLocation(location); project.setModified(false); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant-antidote/src/java/org/apache/tools/ant/gui/customizer package.html
chrisw 2003/10/05 12:31:08 Modified:src/java/org/apache/tools/ant/gui/xml XMLWriter.java src/java/org/apache/tools/ant/gui/core AppContext.java Added: src/java/org/apache/tools/ant/gui/modules/console package.html src/java/org/apache/tools/ant/gui/xml package.html src/java/org/apache/tools/ant/gui/event package.html src/java/org/apache/tools/ant/gui/core package.html src/java/org/apache/tools/ant/gui/xml/dtd package.html src/java/org/apache/tools/ant/gui/modules package.html src/java/org/apache/tools/ant/gui/modules/edit package.html src/java/org/apache/tools/ant/gui/ide package.html src/java/org/apache/tools/ant/gui/command package.html src/java/org/apache/tools/ant/gui/customizer package.html Log: Formatting XML output propertly, more JavaDoc, remove some import warnings. Obtained from: Jack Woehr Submitted by: Christoph Wilhelms Reviewed by: Christoph Wilhelms Revision ChangesPath 1.1 ant-antidote/src/java/org/apache/tools/ant/gui/modules/console/package.html Index: package.html === Provides the Antidote text output console where build events, errors, etc., get reported in realtime. Package Specification The Console package provides the Antidote text output console where build events, errors, etc., get reported in realtime. 1.5 +10 -7 ant-antidote/src/java/org/apache/tools/ant/gui/xml/XMLWriter.java Index: XMLWriter.java === RCS file: /home/cvs/ant-antidote/src/java/org/apache/tools/ant/gui/xml/XMLWriter.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- XMLWriter.java28 Sep 2003 13:03:00 - 1.4 +++ XMLWriter.java5 Oct 2003 19:31:07 - 1.5 @@ -593,8 +593,8 @@ String qName, Attributes atts) throws SAXException { - elementLevel++; - nsSupport.pushContext(); +elementLevel++; +nsSupport.pushContext(); write('<'); writeName(uri, localName, qName, true); writeAttributes(atts); @@ -631,14 +631,18 @@ write("'); - if (elementLevel == 1) { + +if (elementLevel == 1) { writeln(); } + super.endElement(uri, localName, qName); nsSupport.popContext(); - elementLevel--; + +if (--elementLevel == 1) { +writeln(); + } } - /** * Write character data. @@ -712,7 +716,6 @@ public void comment (String data) throws SAXException { -writeln(); doIndent(); write(" Provides the Antidote infrastructure for XML parsing and writing. Package Specification The XML package provides the Antidote infrastructure for XML parsing and writing. 1.1 ant-antidote/src/java/org/apache/tools/ant/gui/event/package.html Index: package.html === Provides the features of the event bus by means of which entities within the Antidote application share and manage event notifications. Package Specification The Event package provides the features of the event bus by means of which entities within the Antidote application share and manage event notifications. 1.7 +3 -6 ant-antidote/src/java/org/apache/tools/ant/gui/core/AppContext.java Index: AppContext.java === RCS file: /home/cvs/ant-antidote/src/java/org/apache/tools/ant/gui/core/AppContext.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- AppContext.java 28 Sep 2003 13:03:00 - 1.6 +++ AppContext.java 5 Oct 2003 19:31:08 - 1.7 @@ -52,12 +52,9 @@ * <http://www.apache.org/>. */ package org.apache.tools.ant.gui.core; -import org.apache.tools.ant.BuildListener; -import org.apache.tools.ant.gui.event.*; -import org.apache.tools.ant.gui.acs.ACSProjectElement; -import org.apache.tools.ant.gui.acs.ACSTargetElement; import java.awt.Frame; -import java.util.*; + +import org.apache.tools.ant.gui.event.EventBus; /** * A container for the state information for the application. Provides 1.1 ant-antidote/src/java/org/apache/tools/ant/gui/core/package.html Index: package.html === Occupies the foundation layer of the Antidote ap
cvs commit: ant-antidote/src/java/org/apache/tools/ant/gui package.html
chrisw 2003/10/02 23:57:16 Modified:src/java/org/apache/tools/ant/gui/util Argument.java Added: src/java/org/apache/tools/ant/gui/util package.html src/java/org/apache/tools/ant/gui package.html Log: Documentation to make Javadoc more useful Obtained from: Jack Woehr Submitted by: Christoph Wilhelms Reviewed by: Christoph Wilhelms Revision ChangesPath 1.2 +3 -3 ant-antidote/src/java/org/apache/tools/ant/gui/util/Argument.java Index: Argument.java === RCS file: /home/cvs/ant-antidote/src/java/org/apache/tools/ant/gui/util/Argument.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- Argument.java 28 Sep 2003 13:03:00 - 1.1 +++ Argument.java 3 Oct 2003 06:57:16 - 1.2 @@ -63,7 +63,7 @@ * line that the arg or opt-arg pair came in. * @author $Author$ * @version $Revision$ - * @see corg.apache.tools.ant.gui.util.GetArgs + * @see org.apache.tools.ant.gui.util.GetArgs */ public class Argument { 1.1 ant-antidote/src/java/org/apache/tools/ant/gui/util/package.html Index: package.html === Provides self-contained utility classes called upon to provide basic functionality. Package Specification For the present, please refer to the developer documentation which is found in the source tree under the ant-antidote/docs/design directory. Related Documentation For overviews, tutorials, examples, guides, and tool documentation, please see: http://ant.apache.org";>The Apache Ant Project 1.1 ant-antidote/src/java/org/apache/tools/ant/gui/package.html Index: package.html === Provides a graphical user interface for the construction of Ant XML build files. Package Specification For the present, please refer to the developer documentation which is found in the source tree under the ant-antidote/docs/design directory. Related Documentation For overviews, tutorials, examples, guides, and tool documentation, please see: http://ant.apache.org";>The Apache Ant Project - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant-antidote/src/java/org/apache/tools/ant/gui Main.java MainFrame.java
chrisw 2003/10/01 22:30:57 Modified:src/java/org/apache/tools/ant/gui Main.java MainFrame.java Log: Make size of main window persistent! Obtained from: Jack Woehr Submitted by: Christoph Wilhelms Reviewed by: Christoph Wilhelms Revision ChangesPath 1.10 +3 -2 ant-antidote/src/java/org/apache/tools/ant/gui/Main.java Index: Main.java === RCS file: /home/cvs/ant-antidote/src/java/org/apache/tools/ant/gui/Main.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- Main.java 28 Sep 2003 13:03:00 - 1.9 +++ Main.java 2 Oct 2003 05:30:57 - 1.10 @@ -100,7 +100,7 @@ f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); AppContext context = new AppContext(f); f.setContext(context); - + /* Doing this in a block to limit scope of temps */ { String propertiesFileName = settings.getPropertiesFile(); @@ -181,6 +181,7 @@ new AppStartupEvent(context)); f.pack(); +f.restorePersistentSize(); f.setVisible(true); // Send notice we are shutting down 1.5 +40 -2 ant-antidote/src/java/org/apache/tools/ant/gui/MainFrame.java Index: MainFrame.java === RCS file: /home/cvs/ant-antidote/src/java/org/apache/tools/ant/gui/MainFrame.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- MainFrame.java28 Sep 2003 13:02:59 - 1.4 +++ MainFrame.java2 Oct 2003 05:30:57 - 1.5 @@ -55,7 +55,7 @@ package org.apache.tools.ant.gui; import org.apache.tools.ant.gui.core.AppContext; -//import org.apache.tools.ant.gui.core.ProjectManager; +import org.apache.tools.ant.gui.core.PropertiesManager; import org.apache.tools.ant.gui.event.ProjectClosedEvent; import org.apache.tools.ant.gui.event.ProjectSelectedEvent; @@ -63,6 +63,7 @@ import org.apache.tools.ant.gui.acs.ACSProjectElement; import java.io.IOException; +import java.awt.Dimension; /** * The main frame for the application @@ -136,9 +137,46 @@ } /** + * Save the window size for the next session + */ +protected void persistSize () { +Dimension d = getSize(); +PropertiesManager pm = _context.getPropertiesManager(); +pm.setProperty("MainFrame.height", new Integer(new Double(d.getHeight()).intValue()).toString()); +pm.setProperty("MainFrame.width", new Integer(new Double(d.getWidth()).intValue()).toString()); +try { +_context.saveProperties(); +} +catch (java.io.FileNotFoundException e) { +// log it? +} +catch (java.io.IOException e) { +// log it? +} +} + + /** + * Restore the window size from the previous session + */ +protected void restorePersistentSize () { + PropertiesManager pm = _context.getPropertiesManager(); + try { + setSize(pm.get_int_property("MainFrame.width"), pm.get_int_property("MainFrame.height")); + } + catch (PropertiesManager.NoSuchPropertyException e) { + // Just means that it's never been saved to persistent properties yet. + } + + catch (PropertiesManager.InvalidIntPropertyException e) { + // Should never occur unless user edited file and messed it up. + } +} + +/** * Intercept the window close event */ protected void processWindowEvent(java.awt.event.WindowEvent windowEvent) { +persistSize(); // Save window size for next session if (windowEvent.getID() == java.awt.event.WindowEvent.WINDOW_CLOSING) { if (exitForm(windowEvent)) { super.processWindowEvent(windowEvent); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant-antidote/src/java/org/apache/tools/ant/gui/modules Reopener.java
chrisw 2003/09/28 23:40:00 Modified:src/java/org/apache/tools/ant/gui/modules Reopener.java Log: Make reopen use PropertiesManager Submitted by: Jack Woehr Reviewed by: Christoph Wilhelms CVS: -- CVS: PR: CVS: If this change addresses a PR in the problem report tracking CVS: database, then enter the PR number(s) here. CVS: Obtained from: CVS: If this change has been taken from another system, such as NCSA, CVS: then name the system in this line, otherwise delete it. CVS: Submitted by: CVS: If this code has been contributed to Apache by someone else; i.e., CVS: they sent us a patch or a new module, then include their name/email CVS: address here. If this is your work then delete this line. CVS: Reviewed by: CVS: If we are doing pre-commit code reviews and someone else has CVS: reviewed your changes, include their name(s) here. CVS: If you have not had it reviewed then delete this line. Revision ChangesPath 1.5 +104 -61 ant-antidote/src/java/org/apache/tools/ant/gui/modules/Reopener.java Index: Reopener.java === RCS file: /home/cvs/ant-antidote/src/java/org/apache/tools/ant/gui/modules/Reopener.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- Reopener.java 28 Sep 2003 13:02:59 - 1.4 +++ Reopener.java 29 Sep 2003 06:40:00 - 1.5 @@ -54,9 +54,6 @@ package org.apache.tools.ant.gui.modules; import java.io.File; -import java.io.FileInputStream; -import java.io.FileOutputStream; -import java.io.IOException; import java.net.URL; import java.text.SimpleDateFormat; import java.util.Date; @@ -75,6 +72,7 @@ import org.apache.tools.ant.gui.core.AntMenu; import org.apache.tools.ant.gui.core.AntModule; import org.apache.tools.ant.gui.core.AppContext; +import org.apache.tools.ant.gui.core.PropertiesManager; import org.apache.tools.ant.gui.event.BusFilter; import org.apache.tools.ant.gui.event.BusMember; import org.apache.tools.ant.gui.event.EventBus; @@ -84,8 +82,8 @@ /** * Adds a "Reopen" menu which contains a list of files which * have been opened and closed. - * - * @version $Revision$ + * + * @version $Revision$ * @author Nick Davis */ public class Reopener extends AntModule { @@ -96,30 +94,71 @@ private JMenu _menu = null; /** Used to format the time the file was closed */ private SimpleDateFormat _formatter - = new SimpleDateFormat (".MM.dd G 'at' hh:mm:ss a zzz"); += new SimpleDateFormat(".MM.dd G 'at' hh:mm:ss a zzz"); /** The title of our menu */ private String _menuName = null; /** The menu we put our menu after */ private String _insertAfterMenuName = null; /** The number of files to display */ private static final int NUMBER_MENU_ITEMS = 10; - -/** + +/** The string prefixed to every reopener filelist entry in our Properties */ +public static final String REOPENER_FILELIST_PROPERTY_PREFIX="Reopener.filelist."; + +/** Test if a key (i.e., a Properties file key in our persistent properties) + * is a key written/read by the Reopener as a filelist member. + * @param key A string used as a properties file key. + * @return true if indeed the string represents a Reopener filelist key. + */ +public static boolean isReopenerFilelistKey(String key) { +boolean result = false; +if (null != key) { +result = key.startsWith(REOPENER_FILELIST_PROPERTY_PREFIX); +} +return result; +} + +/** Make a file key intended to be stored in our persistent properties + * into a key written/read by the Reopener as a filelist member by prefixing + * it correctly. + * @param key A string used by the Reopener intended to be used as a properties file key. + * @return The same string prefixed with the Reopener filelist key. + */ +public static String makeReopenerFilelistKey(String protoKey) { +String result= REOPENER_FILELIST_PROPERTY_PREFIX + protoKey; +return result; +} + +/** Make a file key intended to be stored in our persistent properties + * into a the kind of key understood by the Reopener as a filelist member by + * stripping the prefix that identifies it as a Reopener key in the properties file. + * @param key A string used as a properties file key. + * @return The same string with the prefix for a Reopener filelist key stripped from it. + */ +public static String stripReopenerFilelistKey(String protoKey) { +String resu
cvs commit: ant-antidote/src/java/org/apache/tools/ant/gui/ide EmacsNotifier.java
chrisw 2003/09/28 06:03:00 Modified:src/java/org/apache/tools/ant/gui/customizer DynamicTableCellEditor.java FilePropertyEditor.java BooleanPropertyEditor.java AbstractPropertyEditor.java src/java/org/apache/tools/ant/gui/wizard/build BuildStateMachine.java ProjectTypeStep.java FinishStep.java JARStep.java CompileStep.java JavaDocStep.java ProjectSetupStep.java src/java/org/apache/tools/ant/gui/util LabelFieldGBC.java ChangeLookAndFeel.java src/java/org/apache/tools/ant/gui/command NewElementCmd.java Command.java ShowOrHideConsoleCmd.java AboutCmd.java NewElementDlg.java ExitCmd.java LoadFileCmd.java DisplayErrorCmd.java src/java/org/apache/tools/ant/gui Antidote.java MainFrame.java Main.java src/java/org/apache/tools/ant/gui/modules/edit PropertyEditor.java DtdAttributePropertyEditor.java DragTree.java DependentTargetPropertyEditor.java ElementNavigator.java DependentTargetChooser.java TargetsTableModel.java src/java/org/apache/tools/ant/gui/modules TargetMonitor.java Reopener.java src/java/org/apache/tools/ant/gui/acs ACSElement.java ElementTreeModel.java ACSNamedElement.java ACSDtdDefinedElement.java ACSBeanDescriptor.java ElementTreeSelectionModel.java ACSTargetElementBeanInfo.java ACSIntrospectedElement.java src/java/org/apache/tools/ant/gui/core EventResponder.java SelectionManager.java AntAction.java AppContext.java ResourceManager.java src/java/org/apache/tools/ant/gui/event ElementSelectionEvent.java AntBuildEvent.java RefreshDisplayEvent.java ElementChangedEvent.java NewBaseElementEvent.java DeleteElementEvent.java NullSelectionEvent.java src/java/org/apache/tools/ant/gui/xml/dtd ANTDocumentType.java DOMAttributes.java src/java/org/apache/tools/ant/gui Args.java Main.java src/java/org/apache/tools/ant/gui/xml DOMNode.java DOMElement.java XMLWriter.java DOMDocument.java DOMNodeSerializer.java DOMNodeManager.java src/java/org/apache/tools/ant/gui/core AppContext.java src/java/org/apache/tools/ant/gui/wizard Wizard.java DefaultStateMachine.java src/java/org/apache/tools/ant/gui/modules/console BuildConsole.java src/java/org/apache/tools/ant/gui/ide EmacsNotifier.java Added: src/java/org/apache/tools/ant/gui/core PropertiesManager.java src/java/org/apache/tools/ant/gui/util GetArgs.java Argument.java Log: Jack Woehr's persitent properties and additonally removed many unused imports using eclipse's organize imports... Submitted by: Jack Woehr Reviewed by: Christoph Wilhelms ([EMAIL PROTECTED]) CVS: -- CVS: PR: CVS: If this change addresses a PR in the problem report tracking CVS: database, then enter the PR number(s) here. CVS: Obtained from: CVS: If this change has been taken from another system, such as NCSA, CVS: then name the system in this line, otherwise delete it. CVS: Submitted by: CVS: If this code has been contributed to Apache by someone else; i.e., CVS: they sent us a patch or a new module, then include their name/email CVS: address here. If this is your work then delete this line. CVS: Reviewed by: CVS: If we are doing pre-commit code reviews and someone else has CVS: reviewed your changes, include their name(s) here. CVS: If you have not had it reviewed then delete this line. Revision ChangesPath 1.3 +15 -6 ant-antidote/src/java/org/apache/tools/ant/gui/customizer/DynamicTableCellEditor.java http://cvs.apache.org/viewcvs/ant-antidote/src/java/org/apache/tools/ant/gui/customizer/DynamicTableCellEditor.java.diff?r1=1.2&r2=1.3 1.4 +10 -6 ant-antidote/src/java/org/apache/tools/ant/gui/customizer/FilePropertyEditor.java http://cvs.apache.org/viewcvs/ant-antidote/src/java/org/apache/tools/ant/gui/customizer/FilePropertyEditor.java.diff?r1=1.3&r2=1.4 1.4 +2 -4 ant-antidote/src/java/org/apache/tools/
cvs commit: ant-antidote TODO
chrisw 2003/09/21 22:50:07 Modified:.TODO Log: Applied Jack Wohrs updates to the TODO List Revision ChangesPath 1.3 +45 -22ant-antidote/TODO Index: TODO === RCS file: /home/cvs/ant-antidote/TODO,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- TODO 9 Apr 2001 00:17:47 - 1.2 +++ TODO 22 Sep 2003 05:50:07 - 1.3 @@ -1,15 +1,14 @@ TODO List: -* Cleanup build.xml file; make antidote specific. -* Rewrite ACSFactory to use it's own parser rather than the implementation - specific com.sun.xml.tree.SimpleElementFactory class (only available - in JAXP from Sun). +* Improve editors for defining file sets, and other "sets". -* Add editors for defining file sets, and other "sets". +* Begin to use wizard framework to develop useful wizards, such + as target creation. -* Write wizzard framework. - -* Implement a build progress reporter. +* Implement a build progress reporter beyond the console + itself to write a log to a file in addition. Obviously + the log line formtting has to be definable interactively + and stored in preferences. * Implement a "Worker Thread" pattern that allows workers to have their work done in a thread property registered with Antidote, and @@ -17,45 +16,70 @@ the GUI. Should also provide support for hour-glass cursor handling, and AWT event blocking until task is completed. This would be used for things such as loading files or other tasks - that the user must wait for completion. + that the user must wait for completion. Currently there is no + way to stop Ant once it runs from Antidote! * Add menu option to select the compiler to use, which then sets the "build.compiler" property. Better yet, create a generic menu building capability that allows the setting of a property from a - list of options. + list of options, not just setting the complier, but allowing + the option to set all Ant -D parameters from the gui and make + them storable. * Add ability to put an "all" or "don't care" specifyer on the action "enableOn" and "disableOn" properties. -* Add ability to view task dependencies more fully. - -* Add better editors for specific tasks. +* Add ability to view task dependencies more fully. It would be + nice to be able to show a graphic with all the targets and + arrows between them to show the dependencies. + +* Add better editors for specific tasks. Not only for tasks, but + properties in addition. We mean editors just like the dependency + chooser. * Add a Progress Monitor for file loading (especially for slow boxen like mine) . * Implement some for of refid hyperlinking functionality. + DOWNGRADED: We think integration into IDEs is no BIG project aim + anymore or at least at the moment. * Implement context sensitive menus for the console window, allowing an error to be selected and invoked in IDE. * Write preferences framwork, including persistence support. -* Provide some sort of class path debugging support. +* Provide some sort of class path debugging support, e.g., + displaying the Ant-build-classpath and introspect the jars one + by one ... search for Classes and multiple occurrences in the + classpath ... and so on. * Add "syntax" colorization to the console window {done}, - with a preferences editor for setting up the styles {not-done}. + with a preferences editor for setting up the styles {not-done}, + to make the syntax highlighting in the console window + configurable via the Preferences window and persistent via + properties. * Figure out an approach to gracefully stopping a running build. + "Uneasy to implement without hooks in Ant itself." - (Christoph + Wilhelms) + * Add error handler for SAX parser to better report loading errors. * Project properties viewer, including the ability to view - dependencies (local and cascading). - -* Acquire or implement a logging facility. - -* Eat more dog food. + dependencies (local and cascading). View and modify the project + properties you can override using -D with the Ant commandline + "Cascading" means from imported build.xml's. + +* Acquire or implement a logging facility. C. Wilhelms would + prefer Log4J. Logkit would be another option,
cvs commit: ant/docs/images sdm_productivity_award.gif
chrisw 2003/06/11 14:08:33 Modified:xdocsantnews.xml docs antnews.html docs/images sdm_productivity_award.gif Log: Corrected Conor's correction ;-) and reduced a logo-size by 30k (80%) :-) Revision ChangesPath 1.45 +2 -3 ant/xdocs/antnews.xml Index: antnews.xml === RCS file: /home/cvs/ant/xdocs/antnews.xml,v retrieving revision 1.44 retrieving revision 1.45 diff -u -r1.44 -r1.45 --- antnews.xml 11 Jun 2003 06:19:47 - 1.44 +++ antnews.xml 11 Jun 2003 21:08:33 - 1.45 @@ -16,8 +16,7 @@ Ant has won the JavaWorld Editors' Choice Award for Most Useful Java Community-Developed Technology -for second time in a row! -Read the +for the second time in a row! Read the http://www.javaworld.com/javaworld/jw-06-2003/jw-0609-eca.html";> full article -- or jump directly to the bit about http://www.javaworld.com/javaworld/jw-06-2003/jw-0609-eca-p4.html";> our award :) @@ -138,7 +137,7 @@ -http://www.sdmagazine.com";> +http://www.sdmagazine.com";> Apr 29, 2002: Ant wins Software Development magazine's 2002 Productivity Award. 1.72 +2 -3 ant/docs/antnews.html Index: antnews.html === RCS file: /home/cvs/ant/docs/antnews.html,v retrieving revision 1.71 retrieving revision 1.72 diff -u -r1.71 -r1.72 --- antnews.html 11 Jun 2003 06:19:46 - 1.71 +++ antnews.html 11 Jun 2003 21:08:33 - 1.72 @@ -176,8 +176,7 @@ Ant has won the JavaWorld Editors' Choice Award for Most Useful Java Community-Developed Technology -for second time in a row! -Read the +for the second time in a row! Read the http://www.javaworld.com/javaworld/jw-06-2003/jw-0609-eca.html";> full article -- or jump directly to the bit about http://www.javaworld.com/javaworld/jw-06-2003/jw-0609-eca-p4.html";> our award :) @@ -304,7 +303,7 @@ Ant wins again! -http://www.sdmagazine.com";> +http://www.sdmagazine.com";> Apr 29, 2002: Ant wins Software Development magazine's 2002 Productivity Award. 1.2 +35 -174 ant/docs/images/sdm_productivity_award.gif <> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant/docs/images jw_ec_logo_winner2003.gif
chrisw 2003/06/10 14:29:29 Modified:docs antnews.html xdocsantnews.xml Added: docs/images jw_ec_logo_winner2003.gif Log: Add newly won Java World Editiors Choice Award to News-Page Revision ChangesPath 1.70 +16 -4 ant/docs/antnews.html Index: antnews.html === RCS file: /home/cvs/ant/docs/antnews.html,v retrieving revision 1.69 retrieving revision 1.70 diff -u -r1.69 -r1.70 --- antnews.html 11 May 2003 12:00:35 - 1.69 +++ antnews.html 10 Jun 2003 21:29:29 - 1.70 @@ -168,6 +168,18 @@ News + + Ant keeps on winning! + +http://www.javaworld.com";> +June 9th, 2003: Ant wins the JavaWorld Editors' Choice Award + +Ant has won the JavaWorld Editors' Choice Award for +Most Useful Java Community-Developed Technology second time in a row! +Read the +http://www.javaworld.com/javaworld/jw-06-2003/jw-0609-eca.html";> full article -- or jump directly to the bit about +http://www.javaworld.com/javaworld/jw-06-2003/jw-0609-eca-p4.html";> our award :) + Ant 1.5.3 @@ -291,10 +303,10 @@ Ant wins again! -Apr 29, 2002: Ant wins Software Development magazine's +http://www.sdmagazine.com";> +Apr 29, 2002: Ant wins Software Development magazine's 2002 Productivity Award. -http://www.sdmagazine.com";> Ant has been awarded a 2002 Productivity Award by http://www.sdmagazine.com/";>Software Development magazine. Read the @@ -305,10 +317,10 @@ Ant has won! -Mar 26, 2002: Ant wins the JavaWorld Editors' Choice +http://www.javaworld.com";> +Mar 26, 2002: Ant wins the JavaWorld Editors' Choice Award -http://www.javaworld.com";> Ant has won the JavaWorld Editors' Choice Award for Most Useful Java Community-Developed Technology. Read the 1.43 +14 -2 ant/xdocs/antnews.xml Index: antnews.xml === RCS file: /home/cvs/ant/xdocs/antnews.xml,v retrieving revision 1.42 retrieving revision 1.43 diff -u -r1.42 -r1.43 --- antnews.xml 9 Apr 2003 03:05:26 - 1.42 +++ antnews.xml 10 Jun 2003 21:29:29 - 1.43 @@ -9,6 +9,18 @@ + +http://www.javaworld.com";> +June 9th, 2003: Ant wins the JavaWorld Editors' Choice Award + + +Ant has won the JavaWorld Editors' Choice Award for +Most Useful Java Community-Developed Technology second time in a row! +Read the +http://www.javaworld.com/javaworld/jw-06-2003/jw-0609-eca.html";> full article -- or jump directly to the bit about +http://www.javaworld.com/javaworld/jw-06-2003/jw-0609-eca-p4.html";> our award :) + + April 9, 2003 - Ant 1.5.3 Available Apache Ant 1.5.3 is now available for @@ -125,10 +137,10 @@ +http://www.sdmagazine.com";> Apr 29, 2002: Ant wins Software Development magazine's 2002 Productivity Award. -http://www.sdmagazine.com";> Ant has been awarded a 2002 Productivity Award by http://www.sdmagazine.com/";>Software Development magazine. Read the @@ -138,11 +150,11 @@ +http://www.javaworld.com";> Mar 26, 2002: Ant wins the JavaWorld Editors' Choice Award -http://www.javaworld.com";> Ant has won the JavaWorld Editors' Choice Award for Most Useful Java Community-Developed Technology. Read the 1.1 ant/docs/images/jw_ec_logo_winner2003.gif <> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant/xdocs contributors.xml
chrisw 2003/04/15 20:38:43 Modified:docs/manual credits.html docs/manual/Integration VAJAntTool.html xdocscontributors.xml Log: Changing employers again. Trying to avoid spam... Added Wolf and myself (after more then 2 years passed 8-)) to manual credits. Revision ChangesPath 1.22 +3 -1 ant/docs/manual/credits.html Index: credits.html === RCS file: /home/cvs/ant/docs/manual/credits.html,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- credits.html 7 Mar 2003 14:41:10 - 1.21 +++ credits.html 16 Apr 2003 03:38:43 - 1.22 @@ -32,10 +32,12 @@ Sam Ruby (mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]) Nico Seessle (mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]) Jon S. Stevens (mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]) + Wolf Siberski Magesh Umasankar Roger Vaughn (mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]) Dave Walend (mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]) Phillip Wells (mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]) + Christoph Wilhelms Craeg Strong (mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]) 1.17 +2 -4 ant/docs/manual/Integration/VAJAntTool.html Index: VAJAntTool.html === RCS file: /home/cvs/ant/docs/manual/Integration/VAJAntTool.html,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- VAJAntTool.html 19 Feb 2003 09:23:19 - 1.16 +++ VAJAntTool.html 16 Apr 2003 03:38:43 - 1.17 @@ -10,11 +10,9 @@ Visual Age for Java Tasks and Plugin User Manual by Wolf Siberski - (mailto:[EMAIL PROTECTED]"> - [EMAIL PROTECTED] ) + (siberski at kbs.uni-hannover.de) Christoph Wilhelms - (mailto:[EMAIL PROTECTED]"> - [EMAIL PROTECTED]) + (christoph.wilhelms at tui.de) Version 1.2 - 2001/06/14 Table of Contents 1.7 +3 -5 ant/xdocs/contributors.xml Index: contributors.xml === RCS file: /home/cvs/ant/xdocs/contributors.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- contributors.xml 15 Apr 2003 13:30:31 - 1.6 +++ contributors.xml 16 Apr 2003 03:38:43 - 1.7 @@ -91,11 +91,9 @@ Christoph Wilhelms (christoph.wilhelms at t-online.de) -Christoph is teamleader and a lead software engineer at -http://www.impress.com/english/index.html";>IMPRESS SOFTWARE. He is resposible for -the development of administration tools and development environment for -the IMPRESS Engine, a Java-based intergration software. At the Ant-Project -he takes care of Antidote - the Ant GUI. +Christoph works as software engineer at the worlds biggest traval company +http://www.tui.com";>TUI. His passion are all UI related things so +at the Ant-Project he takes care of Antidote - the Ant GUI.