cvs commit: ant/docs external.html projects.html
jhm 2004/07/10 01:07:41 Modified:xdocsexternal.xml projects.xml docs external.html projects.html Log: Ant2SVG, Savant, Surround SCM Revision ChangesPath 1.135 +60 -5 ant/xdocs/external.xml Index: external.xml === RCS file: /home/cvs/ant/xdocs/external.xml,v retrieving revision 1.134 retrieving revision 1.135 diff -u -r1.134 -r1.135 --- external.xml 25 Jun 2004 06:54:27 - 1.134 +++ external.xml 10 Jul 2004 08:07:41 - 1.135 @@ -29,7 +29,8 @@ href=#TasksTasks/a, a href=#Compiler%20ImplementationsCompiler Implementations/a, a href=#IDE%20and%20Editor%20IntegrationIDE integration - tools/a, loggers, you name it. If you've written + tools/a, a href=#Source%20Control%20ystemsSource Control + Systems/a, loggers, you name it. If you've written something that should be included, please post all relevant information to one of the mailing lists. For details, see the a href=faq.html#adding-external-tasksFAQ/a./p @@ -118,6 +119,34 @@ /table /subsection + subsection name=Ant2Svg + +pAnt2Svg creates a graphical representation of an Ant build file. +The graphical representation is in the form of a Scalable Vector +Graphics (SVG) file that can be displayed in a web browser. This +simplified SVG depiction helps the developer understand build file +structure and identify extraneous or missing dependencies./p + +table class=externals + tr +thCompatibility:/th +tdAnt 1.6.1 and higher/td + /tr + tr +thURL:/th +tda href=http://www.spiritedsw.com/ant2svg/;http://www.spiritedsw.com/ant2svg//a/td + /tr + tr +thContact:/th +tdloney lt;atgt; spiritedsw lt;dotgt; com/td + /tr + tr +thLicense:/th +tdThe Apache Software License 2.0/td + /tr +/table + /subsection + subsection name=AntDoc pAntDoc is a tool that generates HTML documentation from Ant @@ -674,10 +703,10 @@ /subsection subsection name=Grand -pGrand is a set of tools to create a visual representation of Ant target - dependencies. It works by taking an Ant build file and creating a dot file. It - differs from the existing tools by relying on the Ant API rather than XML parsing to - get the dependencies. It includes many advanced features such as filtering or +pGrand is a set of tools to create a visual representation of Ant target + dependencies. It works by taking an Ant build file and creating a dot file. It + differs from the existing tools by relying on the Ant API rather than XML parsing to + get the dependencies. It includes many advanced features such as filtering or rendering depending on the target's nature. Also features a SWT based GUI./p table class=externals @@ -2998,6 +3027,32 @@ pThere are several integration with SCM systems. Some are a href=manual/tasksoverview.html#scmbuild in/a. But some are available as external libraries. Here a list of task libraries we are aware of:/p + + subsection name=Surround SCM + + pThese are tasks that allow users to access Surround SCM + functionality from within Ant build scripts./p + + table class=externals + tr +thCompatibility:/th +tdAnt 1.5 and later/td + /tr + tr +thURL:/th +tda href=http://www.seapine.com/scmresources.php#integration; +Surround SCM Resource Center/a/td + /tr + tr +thContact:/th +tda href=mailto:[EMAIL PROTECTED]Seapine Support/a/td + /tr + tr +thLicense:/th +tdGNU Lesser General Public License/td + /tr +/table + /subsection /section 1.19 +34 -1 ant/xdocs/projects.xml Index: projects.xml === RCS file: /home/cvs/ant/xdocs/projects.xml,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- projects.xml 5 Jul 2004 14:57:11 - 1.18 +++ projects.xml 10 Jul 2004 08:07:41 - 1.19 @@ -329,7 +329,7 @@ tdOpensource/td /tr /table - /subsection + /subsection subsection name=NAnt @@ -379,6 +379,39 @@ tr thLicense:/th
cvs commit: ant/docs external.html projects.html
jhm 2004/07/10 01:10:39 Modified:xdocsTag: ANT_16_BRANCH external.xml projects.xml docs Tag: ANT_16_BRANCH external.html projects.html Log: Sync with Head: Ant2SVG, Savant, Surround SCM Revision ChangesPath No revision No revision 1.100.2.20 +60 -5 ant/xdocs/external.xml Index: external.xml === RCS file: /home/cvs/ant/xdocs/external.xml,v retrieving revision 1.100.2.19 retrieving revision 1.100.2.20 diff -u -r1.100.2.19 -r1.100.2.20 --- external.xml 25 Jun 2004 07:03:39 - 1.100.2.19 +++ external.xml 10 Jul 2004 08:10:39 - 1.100.2.20 @@ -29,7 +29,8 @@ href=#TasksTasks/a, a href=#Compiler%20ImplementationsCompiler Implementations/a, a href=#IDE%20and%20Editor%20IntegrationIDE integration - tools/a, loggers, you name it. If you've written + tools/a, a href=#Source%20Control%20ystemsSource Control + Systems/a, loggers, you name it. If you've written something that should be included, please post all relevant information to one of the mailing lists. For details, see the a href=faq.html#adding-external-tasksFAQ/a./p @@ -118,6 +119,34 @@ /table /subsection + subsection name=Ant2Svg + +pAnt2Svg creates a graphical representation of an Ant build file. +The graphical representation is in the form of a Scalable Vector +Graphics (SVG) file that can be displayed in a web browser. This +simplified SVG depiction helps the developer understand build file +structure and identify extraneous or missing dependencies./p + +table class=externals + tr +thCompatibility:/th +tdAnt 1.6.1 and higher/td + /tr + tr +thURL:/th +tda href=http://www.spiritedsw.com/ant2svg/;http://www.spiritedsw.com/ant2svg//a/td + /tr + tr +thContact:/th +tdloney lt;atgt; spiritedsw lt;dotgt; com/td + /tr + tr +thLicense:/th +tdThe Apache Software License 2.0/td + /tr +/table + /subsection + subsection name=AntDoc pAntDoc is a tool that generates HTML documentation from Ant @@ -674,10 +703,10 @@ /subsection subsection name=Grand -pGrand is a set of tools to create a visual representation of Ant target - dependencies. It works by taking an Ant build file and creating a dot file. It - differs from the existing tools by relying on the Ant API rather than XML parsing to - get the dependencies. It includes many advanced features such as filtering or +pGrand is a set of tools to create a visual representation of Ant target + dependencies. It works by taking an Ant build file and creating a dot file. It + differs from the existing tools by relying on the Ant API rather than XML parsing to + get the dependencies. It includes many advanced features such as filtering or rendering depending on the target's nature. Also features a SWT based GUI./p table class=externals @@ -2998,6 +3027,32 @@ pThere are several integration with SCM systems. Some are a href=manual/tasksoverview.html#scmbuild in/a. But some are available as external libraries. Here a list of task libraries we are aware of:/p + + subsection name=Surround SCM + + pThese are tasks that allow users to access Surround SCM + functionality from within Ant build scripts./p + + table class=externals + tr +thCompatibility:/th +tdAnt 1.5 and later/td + /tr + tr +thURL:/th +tda href=http://www.seapine.com/scmresources.php#integration; +Surround SCM Resource Center/a/td + /tr + tr +thContact:/th +tda href=mailto:[EMAIL PROTECTED]Seapine Support/a/td + /tr + tr +thLicense:/th +tdGNU Lesser General Public License/td + /tr +/table + /subsection /section 1.10.2.7 +34 -1 ant/xdocs/projects.xml Index: projects.xml === RCS file: /home/cvs/ant/xdocs/projects.xml,v retrieving revision 1.10.2.6 retrieving revision 1.10.2.7 diff -u -r1.10.2.6 -r1.10.2.7 --- projects.xml 5 Jul 2004 14:58:31 - 1.10.2.6 +++ projects.xml 10 Jul 2004 08:10:39 - 1.10.2.7 @@ -329,7 +329,7 @@ tdOpensource/td /tr
cvs commit: ant/src/main/org/apache/tools/ant/types/selectors/modifiedselector DigestAlgorithm.java ModifiedSelector.java PropertiesfileCache.java
jhm 2004/07/10 10:15:37 Modified:src/etc/testcases/types selectors.xml src/testcases/org/apache/tools/ant/types/selectors ModifiedSelectorTest.java docs/manual/CoreTypes selectors.html src/main/org/apache/tools/ant/types/selectors/modifiedselector DigestAlgorithm.java ModifiedSelector.java PropertiesfileCache.java Added: src/testcases/org/apache/tools/ant/types/selectors MockAlgorithm.java MockCache.java MockComparator.java Log: Small redesign of ModifiedSelector. Integrating BugIDs 29742+29743. Adding support of custom classes. Checkstyle. Revision ChangesPath 1.8 +15 -0 ant/src/etc/testcases/types/selectors.xml Index: selectors.xml === RCS file: /home/cvs/ant/src/etc/testcases/types/selectors.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- selectors.xml 30 Sep 2003 09:45:21 - 1.7 +++ selectors.xml 10 Jul 2004 17:15:37 - 1.8 @@ -242,4 +242,19 @@ /copy /target + target name=modifiedselectortest-customClasses depends=modifiedselectortest-scenario-prepare + property name=pkg.live value=org.apache.tools.ant.types.selectors.modifiedselector/ + property name=pkg.test value=org.apache.tools.ant.types.selectors/ + fileset id=fs.mod dir=${test.dir}/src + modified + algorithmclass=${pkg.test}.MockAlgorithm + cacheclass=${pkg.test}.MockCache + comparatorclass=${pkg.test}.MockComparator + / + /fileset + fileset id=fs.full dir=${test.dir}/src/ + property name=fs.mod.value refid=fs.mod/ + property name=fs.full.value refid=fs.full/ + /target + /project 1.8 +632 -289 ant/src/testcases/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java Index: ModifiedSelectorTest.java === RCS file: /home/cvs/ant/src/testcases/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- ModifiedSelectorTest.java 9 Mar 2004 16:49:07 - 1.7 +++ ModifiedSelectorTest.java 10 Jul 2004 17:15:37 - 1.8 @@ -29,6 +29,12 @@ import org.apache.tools.ant.BuildException; import org.apache.tools.ant.types.Parameter; +// inside MockProject +import org.apache.tools.ant.Project; +import org.apache.tools.ant.Target; +import org.apache.tools.ant.Task; +import org.apache.tools.ant.BuildEvent; + // The classes to test import org.apache.tools.ant.types.selectors.modifiedselector.*; @@ -36,15 +42,22 @@ /** * Unit tests for ModifiedSelector. * - * @version 2003-09-13 + * @version 2004-07-07 * @since Ant 1.6 */ public class ModifiedSelectorTest extends BaseSelectorTest { + +// = attributes = + + /** Package of the CacheSelector classes. */ private static String pkg = org.apache.tools.ant.types.selectors.modifiedselector; +// = constructors, factories = + + public ModifiedSelectorTest(String name) { super(name); } @@ -59,6 +72,68 @@ } +// = JUnit stuff = + + + +/* There are two tests which cannot run until the test package is added + * to the core classloader. See comment in ModifiedSelelector.loadClass(). + * The tests should pass then - but because the usual build wont add + * these classes I exclude them from being executed: + * - classloaderProblem_testCustomAlgorithm2 + * - classloaderProblem_testCustomClasses + * + * For activating decomment the suite method. + * + * the addTest-part can be generated via grep and sed: + * grep void test ModifiedSelectorTest.java + * | sed -e 's/() {/));/' + * -e 's/public void /suite.addTest(new ModifiedSelectorTest(/' + */ + +/* * / +// for test only - ignore tests where we arent work at the moment +public static junit.framework.Test suite() { +junit.framework.TestSuite suite= new junit.framework.TestSuite(); +suite.addTest(new ModifiedSelectorTest(testValidateWrongCache)); +suite.addTest(new ModifiedSelectorTest(testValidateWrongAlgorithm)); +suite.addTest(new ModifiedSelectorTest(testValidateWrongComparator)); +suite.addTest(new ModifiedSelectorTest(testIllegalCustomAlgorithm)); +suite.addTest(new ModifiedSelectorTest(testNonExistentCustomAlgorithm));
cvs commit: ant/src/main/org/apache/tools/ant/types/selectors/modifiedselector ChecksumAlgorithm.java
jhm 2004/07/10 10:22:21 Added: src/main/org/apache/tools/ant/types/selectors/modifiedselector ChecksumAlgorithm.java Log: Forgot to add the Checksum Revision ChangesPath 1.1 ant/src/main/org/apache/tools/ant/types/selectors/modifiedselector/ChecksumAlgorithm.java Index: ChecksumAlgorithm.java === /* * Copyright 2003-2004 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.tools.ant.types.selectors.modifiedselector; import java.util.zip.Checksum; import java.util.zip.CRC32; import java.util.zip.Adler32; import java.util.zip.CheckedInputStream; import java.io.File; import java.io.FileInputStream; import java.io.BufferedInputStream; import java.security.NoSuchAlgorithmException; import org.apache.tools.ant.BuildException; /** * Computes a 'checksum' for the content of file using * java.util.zip.CRC32 and java.util.zip.Adler32. * Use of this algorithm doesn't require any additional nested params. * Supported params are: * table * tr * thname/ththvalues/ththdescription/ththrequired/th * /tr * tr * td algorithm.algorithm /td * td ADLER | CRC ( default ) /td * td name of the algorithm the checksum should use /td * td no, defaults to CRC /td * /tr * /table * * @version 2004-06-17 * @since Ant 1.7 */ public class ChecksumAlgorithm implements Algorithm { // - member variables - /** * Checksum algorithm to be used. */ private String algorithm = CRC; /** * Checksum interface instance */ private Checksum checksum = null; // - Algorithm-Configuration - /** * Specifies the algorithm to be used to compute the checksum. * Defaults to CRC. Other popular algorithms like ADLER may be used as well. * @param algorithm the digest algorithm to use */ public void setAlgorithm(String algorithm) { this.algorithm = algorithm; } /** Initialize the checksum interface. */ public void initChecksum() { if (checksum != null) { return; } if (CRC.equalsIgnoreCase(algorithm)) { checksum = new CRC32(); } else if (ADLER.equalsIgnoreCase(algorithm)) { checksum = new Adler32(); } else { throw new BuildException(new NoSuchAlgorithmException()); } } // - Logic - /** * This algorithm supports only CRC and Adler. * @return itrue/i if all is ok, otherwise ifalse/i. */ public boolean isValid() { return CRC.equalsIgnoreCase(algorithm) || ADLER.equalsIgnoreCase(algorithm); } /** * Computes a value for a file content with the specified checksum algorithm. * @param fileFile object for which the value should be evaluated. * @returnThe value for that file */ public String getValue(File file) { initChecksum(); String rval = null; try { if (file.canRead()) { checksum.reset(); FileInputStream fis = new FileInputStream(file); CheckedInputStream check = new CheckedInputStream(fis, checksum); BufferedInputStream in = new BufferedInputStream(check); while (in.read() != -1) { // Read the file } rval = Long.toString(check.getChecksum().getValue()); in.close(); } } catch (Exception e) { rval = null; } return rval; } /** * Override Object.toString(). * @return some information about this algorithm. */ public String toString() { StringBuffer buf = new StringBuffer(); buf.append(ChecksumAlgorithm:); buf.append(algorithm=).append(algorithm); buf.append(); return buf.toString(); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Gump build failure...
FYI: http://brutus.apache.org/~gump/public/ant/bootstrap-ant/index.htm which leads to : http://brutus.apache.org/~gump/public/ant/bootstrap-ant/gump_work/buildscript_ant_bootstrap-ant.html ... Bootstrapping Ant Distribution ... Compiling Ant Classes src/main/org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelec tor.java:390: cannot resolve symbol symbol : class ChecksumAlgorithm location: class org.apache.tools.ant.types.selectors.modifiedselector.ModifiedSelector algorithm = new ChecksumAlgorithm(); ^ Note: Some input files use or override a deprecated API. Note: Recompile with -deprecation for details. 1 error ... Failed compiling Ant classes ! regards Adam -- Experience the Unwired Enterprise: http://www.sybase.com/unwiredenterprise Try Sybase: http://www.try.sybase.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Gump build failure...
Just did a build of ant (ant building ant) and that passed without problem so I took a look at the bootstrap.sh script and noticed that the package in question is not included in the build: ${JAVAC} $BOOTJAVAC_OPTS -d ${CLASSDIR} ${TOOLS}/bzip2/*.java ${TOOLS}/tar/*.java ${TOOLS}/zip/*.java \ ${TOOLS}/ant/util/regexp/RegexpMatcher.java \ ${TOOLS}/ant/util/regexp/RegexpMatcherFactory.java \ ${TOOLS}/ant/types/*.java \ ${TOOLS}/ant/*.java ${TOOLS}/ant/taskdefs/*.java \ ${TOOLS}/ant/taskdefs/compilers/*.java \ ${TOOLS}/ant/taskdefs/condition/*.java Seems to me that ${TOOLS}/ant/types/selectors/** needs to be added to the list of sources - after all, .selectors is referenced in AbstractFileSet and defaults.properties. Steve. Adam R. B. Jack wrote: FYI: http://brutus.apache.org/~gump/public/ant/bootstrap-ant/index.htm which leads to : http://brutus.apache.org/~gump/public/ant/bootstrap-ant/gump_work/buildscript_ant_bootstrap-ant.html ... Bootstrapping Ant Distribution ... Compiling Ant Classes src/main/org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelec tor.java:390: cannot resolve symbol symbol : class ChecksumAlgorithm location: class org.apache.tools.ant.types.selectors.modifiedselector.ModifiedSelector algorithm = new ChecksumAlgorithm(); ^ Note: Some input files use or override a deprecated API. Note: Recompile with -deprecation for details. 1 error ... Failed compiling Ant classes ! regards Adam -- Experience the Unwired Enterprise: http://www.sybase.com/unwiredenterprise Try Sybase: http://www.try.sybase.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- |---| | Magic by Merlin | | Production by Avalon | | | | http://avalon.apache.org | |---| - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Gump build failure...
Ignore me - it was a missing class in CVS. Stephen McConnell wrote: Just did a build of ant (ant building ant) and that passed without problem so I took a look at the bootstrap.sh script and noticed that the package in question is not included in the build: ${JAVAC} $BOOTJAVAC_OPTS -d ${CLASSDIR} ${TOOLS}/bzip2/*.java ${TOOLS}/tar/*.java ${TOOLS}/zip/*.java \ ${TOOLS}/ant/util/regexp/RegexpMatcher.java \ ${TOOLS}/ant/util/regexp/RegexpMatcherFactory.java \ ${TOOLS}/ant/types/*.java \ ${TOOLS}/ant/*.java ${TOOLS}/ant/taskdefs/*.java \ ${TOOLS}/ant/taskdefs/compilers/*.java \ ${TOOLS}/ant/taskdefs/condition/*.java Seems to me that ${TOOLS}/ant/types/selectors/** needs to be added to the list of sources - after all, .selectors is referenced in AbstractFileSet and defaults.properties. Steve. Adam R. B. Jack wrote: FYI: http://brutus.apache.org/~gump/public/ant/bootstrap-ant/index.htm which leads to : http://brutus.apache.org/~gump/public/ant/bootstrap-ant/gump_work/buildscript_ant_bootstrap-ant.html ... Bootstrapping Ant Distribution ... Compiling Ant Classes src/main/org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelec tor.java:390: cannot resolve symbol symbol : class ChecksumAlgorithm location: class org.apache.tools.ant.types.selectors.modifiedselector.ModifiedSelector algorithm = new ChecksumAlgorithm(); ^ Note: Some input files use or override a deprecated API. Note: Recompile with -deprecation for details. 1 error ... Failed compiling Ant classes ! regards Adam -- Experience the Unwired Enterprise: http://www.sybase.com/unwiredenterprise Try Sybase: http://www.try.sybase.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- |---| | Magic by Merlin | | Production by Avalon | | | | http://avalon.apache.org | |---| - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]