[jira] Commented: (MPJCOVERAGE-21) Exception in thread main java.io.FileNotFoundException: jcoverage.ser (No such file or directory)
The following comment has been added to this issue: Author: Geoffrey Created: Wed, 29 Dec 2004 4:11 AM Body: I also got that exception, but I got one earlier in the build process too: [instrument] [ERROR] java.io.IOException: CreateProcess: C:\develop\build\j2sdk1.4.2_05\... over 8 lines of 125 characters ... com\domain\mypacka? When using a smaller directory path, I get the same error, but more of the path is shown, again ending with the ? somewhere in the middle. It seems like the command line is to short, yet I am using Windows XP and I 've tested an echo of a much longer command line succesfully. - View this comment: http://jira.codehaus.org/browse/MPJCOVERAGE-21?page=comments#action_28388 - View the issue: http://jira.codehaus.org/browse/MPJCOVERAGE-21 Here is an overview of the issue: - Key: MPJCOVERAGE-21 Summary: Exception in thread main java.io.FileNotFoundException: jcoverage.ser (No such file or directory) Type: Bug Status: Open Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: maven-jcoverage-plugin Versions: 1.0.7 Assignee: Emmanuel Venisse Reporter: Håvard Bjåstad Created: Fri, 3 Dec 2004 7:17 PM Updated: Wed, 29 Dec 2004 4:11 AM Description: We have several projects that run fine, but with two of our projects we get the following output: jcoverage:html-report: [echo] Copying 2 source directories into one for jcoverage jcoverage 1.0.5 copyright (c)2003 jcoverage ltd. http://jcoverage.com/ jcoverage is licensed under the GNU General Public License jcoverage comes with ABSOLUTELY NO WARRANTY [report] Exception in thread main java.io.FileNotFoundException: jcoverage.ser (No such file or directory) [report]at java.io.FileInputStream.open(Native Method) [report]at java.io.FileInputStream.init(FileInputStream.java:106) [report]at com.jcoverage.coverage.reporting.xml.Main.main(Main.java:106) org.apache.commons.jelly.JellyTagException: /home/havard/.maven/cache/maven-jcoverage-plugin-1.0.7/plugin.jelly:193:91: report org.apache.tools.ant.BuildException Maybe the problem is that these projects have two source directories, and jcoverage can't handle that? - JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [vote] release maven-changelog-plugin 1.7.2
+1 -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: mercredi 29 décembre 2004 08:21 To: Maven Developers List Subject: [vote] release maven-changelog-plugin 1.7.2 Hi, I'd like to release the changelog plugin to fix the following issues (particularly with CVS and SVN). Bug http://jira.codehaus.org/browse/MPCHANGELOG-48 MPCHANGELOG-48 http://jira.codehaus.org/browse/MPCHANGELOG-48 *FIXED* CVS date format problem http://jira.codehaus.org/browse/MPCHANGELOG-48 Major Closed Bug http://jira.codehaus.org/browse/MPCHANGELOG-29 MPCHANGELOG-29 http://jira.codehaus.org/browse/MPCHANGELOG-29 *FIXED* Svn date characters eaten by shell http://jira.codehaus.org/browse/MPCHANGELOG-29 Major Closed Bug http://jira.codehaus.org/browse/MPCHANGELOG-46 MPCHANGELOG-46 http://jira.codehaus.org/browse/MPCHANGELOG-46 *FIXED* ViewCVS URL bug http://jira.codehaus.org/browse/MPCHANGELOG-46 Major Closed Improvement http://jira.codehaus.org/browse/MPCHANGELOG-45 MPCHANGELOG-45 http://jira.codehaus.org/browse/MPCHANGELOG-45 *FIXED* Perforce Repository URL should include project http://jira.codehaus.org/browse/MPCHANGELOG-45 +1 from me. Cheers, Brett - 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]
svn commit: r123615 - /maven/maven-1/plugins/trunk/gump/src/plugin-resources/project.jelly
Author: brett Date: Wed Dec 29 01:41:55 2004 New Revision: 123615 URL: http://svn.apache.org/viewcvs?view=revrev=123615 Log: avoid duplicate dependencies and sort them Modified: maven/maven-1/plugins/trunk/gump/src/plugin-resources/project.jelly Modified: maven/maven-1/plugins/trunk/gump/src/plugin-resources/project.jelly Url: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/gump/src/plugin-resources/project.jelly?view=diffrev=123615p1=maven/maven-1/plugins/trunk/gump/src/plugin-resources/project.jellyr1=123614p2=maven/maven-1/plugins/trunk/gump/src/plugin-resources/project.jellyr2=123615 == --- maven/maven-1/plugins/trunk/gump/src/plugin-resources/project.jelly (original) +++ maven/maven-1/plugins/trunk/gump/src/plugin-resources/project.jelly Wed Dec 29 01:41:55 2004 @@ -31,6 +31,17 @@ !-- As the test reports is a plugin property, we can't reliably get it from the project context. Forced to assume the default -- maven:get var=testReportsDirectory plugin=maven-test-plugin property=maven.test.reportsDirectory / maven:makeRelativePath basedir=${basedir} var=mavenTestReportsDest separator=/ path=${testReportsDirectory} / +j:new var=dependentProjects className=java.util.TreeSet / +j:forEach var=dep items=${project.dependencies} + j:choose +j:when test=${dep.getProperty('gump.project') != null} + j:set var=dummy${dependentProjects.add(dep.getProperty('gump.project'))}/j:set +/j:when +j:otherwise + j:set var=dummy${dependentProjects.add(dep.artifactId)}/j:set +/j:otherwise + /j:choose +/j:forEach j:whitespace project name=${project.artifactId} @@ -42,7 +53,7 @@ ![CDATA[property project=${dep.getProperty('gump.project')} name=maven.jar.${dep.artifactId} reference=jarpath ]]j:if test=${dep.getProperty('gump.id') != null}![CDATA[id=${dep.getProperty('gump.id')} ]]/j:if![CDATA[/]]/j:if/j:forEach /maven/j:if -j:forEach var=dep items=${project.dependencies}j:choosej:when test=${dep.getProperty('gump.project') != null}![CDATA[depend project=${dep.getProperty('gump.project')} /]]/j:whenj:otherwise![CDATA[depend project=${dep.artifactId} /]]/j:otherwise/j:choose +j:forEach var=dep items=${dependentProjects}![CDATA[depend project=${dep} /]] /j:forEach![CDATA[ home nested=${homeDir} / - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
multiple-platform
Does Maven supports build on multiple-platform and finally collect the build artifacts on different platform and forms into one package?
[vote] release gump 2.0 plugin
Hi, This plugin now generates somewhat more useful gump descriptors that have them built by Maven. I'll do a bit more doco on the gotchas that still exist in gump before releasing it. Changes: - Add maven.gump.module.name property for overriding the module name - Add junitreport element to the descriptor - Add multiproject module for generating a single module with several projects within the one descriptor. - Set maven.final.name as a property for the maven element, instead of final.name - Set home to ${basedir} instead of ${maven.build.dir}, and set jar path relative to that - Add nag element at module level - Stop mapping Maven names to gump names inside the plugin, but allow the project to do this for itself - Handle subversion as an SCM type +1 from me. Cheers, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [vote] release maven-changelog-plugin 1.7.2
+1 for me Can you include the VSS support (http://jira.codehaus.org/browse/MPCHANGELOG-49) in this release? Emmanuel - Original Message - From: Brett Porter [EMAIL PROTECTED] To: Maven Developers List dev@maven.apache.org Sent: Wednesday, December 29, 2004 8:20 AM Subject: [vote] release maven-changelog-plugin 1.7.2 Hi, I'd like to release the changelog plugin to fix the following issues (particularly with CVS and SVN). Bug http://jira.codehaus.org/browse/MPCHANGELOG-48 MPCHANGELOG-48 http://jira.codehaus.org/browse/MPCHANGELOG-48 *FIXED* CVS date format problem http://jira.codehaus.org/browse/MPCHANGELOG-48 Major Closed Bug http://jira.codehaus.org/browse/MPCHANGELOG-29 MPCHANGELOG-29 http://jira.codehaus.org/browse/MPCHANGELOG-29 *FIXED* Svn date characters eaten by shell http://jira.codehaus.org/browse/MPCHANGELOG-29 Major Closed Bug http://jira.codehaus.org/browse/MPCHANGELOG-46 MPCHANGELOG-46 http://jira.codehaus.org/browse/MPCHANGELOG-46 *FIXED* ViewCVS URL bug http://jira.codehaus.org/browse/MPCHANGELOG-46 Major Closed Improvement http://jira.codehaus.org/browse/MPCHANGELOG-45 MPCHANGELOG-45 http://jira.codehaus.org/browse/MPCHANGELOG-45 *FIXED* Perforce Repository URL should include project http://jira.codehaus.org/browse/MPCHANGELOG-45 +1 from me. Cheers, Brett - 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]
Re: [vote] release gump 2.0 plugin
+1 - Original Message - From: Brett Porter [EMAIL PROTECTED] To: Maven Developers List dev@maven.apache.org Sent: Wednesday, December 29, 2004 11:05 AM Subject: [vote] release gump 2.0 plugin Hi, This plugin now generates somewhat more useful gump descriptors that have them built by Maven. I'll do a bit more doco on the gotchas that still exist in gump before releasing it. Changes: - Add maven.gump.module.name property for overriding the module name - Add junitreport element to the descriptor - Add multiproject module for generating a single module with several projects within the one descriptor. - Set maven.final.name as a property for the maven element, instead of final.name - Set home to ${basedir} instead of ${maven.build.dir}, and set jar path relative to that - Add nag element at module level - Stop mapping Maven names to gump names inside the plugin, but allow the project to do this for itself - Handle subversion as an SCM type +1 from me. Cheers, Brett - 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]
Re: [vote] release gump 2.0 plugin
+1 On Wed, 29 Dec 2004 13:21:38 +0100, Emmanuel Venisse [EMAIL PROTECTED] wrote: +1 - Original Message - From: Brett Porter [EMAIL PROTECTED] To: Maven Developers List dev@maven.apache.org Sent: Wednesday, December 29, 2004 11:05 AM Subject: [vote] release gump 2.0 plugin Hi, This plugin now generates somewhat more useful gump descriptors that have them built by Maven. I'll do a bit more doco on the gotchas that still exist in gump before releasing it. Changes: - Add maven.gump.module.name property for overriding the module name - Add junitreport element to the descriptor - Add multiproject module for generating a single module with several projects within the one descriptor. - Set maven.final.name as a property for the maven element, instead of final.name - Set home to ${basedir} instead of ${maven.build.dir}, and set jar path relative to that - Add nag element at module level - Stop mapping Maven names to gump names inside the plugin, but allow the project to do this for itself - Handle subversion as an SCM type +1 from me. Cheers, Brett - 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]
[jira] Commented: (MPPDF-27) Maven PDF still fails
The following comment has been added to this issue: Author: Geoffrey Created: Wed, 29 Dec 2004 10:45 AM Body: I got this bug too with maven fo:fo In plugin.jelly I found it invokes the method transform on the ${transformer}, which throws the exception. Could it be a Xalan vs JDK 1.4 issues? Is there a xalan dependency missing for the plugin? Using JDK1.4.2, calling maven directly from command line with a CLASSPATH enviroment variable set. - View this comment: http://jira.codehaus.org/browse/MPPDF-27?page=comments#action_28391 - View the issue: http://jira.codehaus.org/browse/MPPDF-27 Here is an overview of the issue: - Key: MPPDF-27 Summary: Maven PDF still fails Type: Bug Status: Open Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: maven-pdf-plugin Versions: 2.2 Assignee: Arnaud HERITIER Reporter: Dr. Spock Created: Fri, 17 Dec 2004 8:37 AM Updated: Wed, 29 Dec 2004 10:45 AM Environment: Windows XP SP2, Cygwin, j2sdk 1.4.2_06, Maven 1.0.2, maven-pdf-plugin SNAPSHOT and 2.2.1 Description: $ maven pdf __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 build:start: xdoc:init: pdf:init: pdf:prepare: [copy] Copying 35 files to C:\spock\projetos\demo-jira\doc\processo\site\target\pdf fo:fo: [echo] Generating c:\spock\projetos\demo-jira\doc\processo\site/target/pdf/project.fo from c:\spock\projetos\demo-jira\doc\processo\site/xdocs/navigation.xml ... BUILD FAILED File.. C:\Documents and Settings\alemos\.maven\cache\maven-pdf-plugin-SNAPSHOT\plugin.jelly Element... j:invoke Line.. 207 Column 56 java.lang.reflect.InvocationTargetException Total time: 5 seconds Finished at: Fri Dec 17 11:15:46 GMT-03:00 2004 - JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Created: (MPIDEA-18) Added improvements to the module creation
Message: A new issue has been created in JIRA. - View the issue: http://jira.codehaus.org/browse/MPIDEA-18 Here is an overview of the issue: - Key: MPIDEA-18 Summary: Added improvements to the module creation Type: Improvement Status: Open Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: maven-idea-plugin Assignee: Brett Porter Reporter: Johann Reyes Created: Wed, 29 Dec 2004 10:53 AM Updated: Wed, 29 Dec 2004 10:53 AM Description: Fixed in this patch issues: MPIDEA-11, MPIDEA-15, also added deployment of libraries that have war.bundle=true to the exploded directory of a web application. - JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Updated: (MPIDEA-18) Added improvements to the module creation
The following issue has been updated: Updater: Johann Reyes (mailto:[EMAIL PROTECTED]) Date: Wed, 29 Dec 2004 10:55 AM Changes: Attachment changed to diff1.txt - For a full history of the issue, see: http://jira.codehaus.org/browse/MPIDEA-18?page=history - View the issue: http://jira.codehaus.org/browse/MPIDEA-18 Here is an overview of the issue: - Key: MPIDEA-18 Summary: Added improvements to the module creation Type: Improvement Status: Open Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: maven-idea-plugin Assignee: Brett Porter Reporter: Johann Reyes Created: Wed, 29 Dec 2004 10:53 AM Updated: Wed, 29 Dec 2004 10:55 AM Description: Fixed in this patch issues: MPIDEA-11, MPIDEA-15, also added deployment of libraries that have war.bundle=true to the exploded directory of a web application. - JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Updated: (MPIDEA-18) Added improvements to the module creation
The following issue has been updated: Updater: Johann Reyes (mailto:[EMAIL PROTECTED]) Date: Wed, 29 Dec 2004 10:54 AM Changes: Attachment changed to diff.txt - For a full history of the issue, see: http://jira.codehaus.org/browse/MPIDEA-18?page=history - View the issue: http://jira.codehaus.org/browse/MPIDEA-18 Here is an overview of the issue: - Key: MPIDEA-18 Summary: Added improvements to the module creation Type: Improvement Status: Open Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: maven-idea-plugin Assignee: Brett Porter Reporter: Johann Reyes Created: Wed, 29 Dec 2004 10:53 AM Updated: Wed, 29 Dec 2004 10:54 AM Description: Fixed in this patch issues: MPIDEA-11, MPIDEA-15, also added deployment of libraries that have war.bundle=true to the exploded directory of a web application. - JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [vote] release gump 2.0 plugin
+1 Brett Porter wrote: Hi, This plugin now generates somewhat more useful gump descriptors that have them built by Maven. I'll do a bit more doco on the gotchas that still exist in gump before releasing it. Changes: - Add maven.gump.module.name property for overriding the module name - Add junitreport element to the descriptor - Add multiproject module for generating a single module with several projects within the one descriptor. - Set maven.final.name as a property for the maven element, instead of final.name - Set home to ${basedir} instead of ${maven.build.dir}, and set jar path relative to that - Add nag element at module level - Stop mapping Maven names to gump names inside the plugin, but allow the project to do this for itself - Handle subversion as an SCM type +1 from me. Cheers, Brett - 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]
[jira] Commented: (MPPDF-27) Maven PDF still fails
The following comment has been added to this issue: Author: Arnaud HERITIER Created: Wed, 29 Dec 2004 3:46 PM Body: Can you send us the log with : maven -X maven:pdf maven -Dmaven.pdf.debug=true maven:pdf I have a similar environment (XP-SP2 + JDK1.4.2_06 + maven 1.0.2 + PDF 2.2.1) but I don't have this problem. - View this comment: http://jira.codehaus.org/browse/MPPDF-27?page=comments#action_28393 - View the issue: http://jira.codehaus.org/browse/MPPDF-27 Here is an overview of the issue: - Key: MPPDF-27 Summary: Maven PDF still fails Type: Bug Status: Open Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: maven-pdf-plugin Versions: 2.2 Assignee: Arnaud HERITIER Reporter: Dr. Spock Created: Fri, 17 Dec 2004 8:37 AM Updated: Wed, 29 Dec 2004 3:46 PM Environment: Windows XP SP2, Cygwin, j2sdk 1.4.2_06, Maven 1.0.2, maven-pdf-plugin SNAPSHOT and 2.2.1 Description: $ maven pdf __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 build:start: xdoc:init: pdf:init: pdf:prepare: [copy] Copying 35 files to C:\spock\projetos\demo-jira\doc\processo\site\target\pdf fo:fo: [echo] Generating c:\spock\projetos\demo-jira\doc\processo\site/target/pdf/project.fo from c:\spock\projetos\demo-jira\doc\processo\site/xdocs/navigation.xml ... BUILD FAILED File.. C:\Documents and Settings\alemos\.maven\cache\maven-pdf-plugin-SNAPSHOT\plugin.jelly Element... j:invoke Line.. 207 Column 56 java.lang.reflect.InvocationTargetException Total time: 5 seconds Finished at: Fri Dec 17 11:15:46 GMT-03:00 2004 - JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r123691 - in maven/maven-1/plugins/branches/scm-1.5-branch: src/main/org/apache/maven/plugins/scm xdocs
Author: brett Date: Wed Dec 29 17:56:24 2004 New Revision: 123691 URL: http://svn.apache.org/viewcvs?view=revrev=123691 Log: reformat Modified: maven/maven-1/plugins/branches/scm-1.5-branch/src/main/org/apache/maven/plugins/scm/ScmBean.java maven/maven-1/plugins/branches/scm-1.5-branch/src/main/org/apache/maven/plugins/scm/ScmCheckinBean.java maven/maven-1/plugins/branches/scm-1.5-branch/src/main/org/apache/maven/plugins/scm/ScmPatternBean.java maven/maven-1/plugins/branches/scm-1.5-branch/src/main/org/apache/maven/plugins/scm/ScmStatusBean.java maven/maven-1/plugins/branches/scm-1.5-branch/xdocs/changes.xml maven/maven-1/plugins/branches/scm-1.5-branch/xdocs/index.xml maven/maven-1/plugins/branches/scm-1.5-branch/xdocs/properties.xml Modified: maven/maven-1/plugins/branches/scm-1.5-branch/src/main/org/apache/maven/plugins/scm/ScmBean.java Url: http://svn.apache.org/viewcvs/maven/maven-1/plugins/branches/scm-1.5-branch/src/main/org/apache/maven/plugins/scm/ScmBean.java?view=diffrev=123691p1=maven/maven-1/plugins/branches/scm-1.5-branch/src/main/org/apache/maven/plugins/scm/ScmBean.javar1=123690p2=maven/maven-1/plugins/branches/scm-1.5-branch/src/main/org/apache/maven/plugins/scm/ScmBean.javar2=123691 == --- maven/maven-1/plugins/branches/scm-1.5-branch/src/main/org/apache/maven/plugins/scm/ScmBean.java (original) +++ maven/maven-1/plugins/branches/scm-1.5-branch/src/main/org/apache/maven/plugins/scm/ScmBean.java Wed Dec 29 17:56:24 2004 @@ -17,6 +17,7 @@ * */ +import org.apache.maven.scm.ScmFileSet; import org.apache.maven.scm.ScmResult; import org.apache.maven.scm.command.checkout.CheckOutScmResult; import org.apache.maven.scm.command.tag.TagScmResult; @@ -30,7 +31,7 @@ /** * A bean for using the Maven SCM API because wrangling objects in Jelly is no fun. - * + * * @author a href=mailto:[EMAIL PROTECTED]Brett Porter/a */ public class ScmBean @@ -44,7 +45,8 @@ // note - this should not have a setter private File checkoutDirectory; -protected Embedder getEmbedder() throws Exception +protected Embedder getEmbedder() +throws Exception { ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader( getClass().getClassLoader() ); @@ -54,11 +56,12 @@ embedder.start(); Thread.currentThread().setContextClassLoader( oldClassLoader ); - + return embedder; } -public void checkout() throws Exception +public void checkout() +throws Exception { // TODO: can this be shared more? Embedder embedder = getEmbedder(); @@ -69,7 +72,7 @@ checkoutDirectory = new File( workingDirectory ); if ( module.length() 0 ) - { +{ checkoutDirectory = new File( checkoutDirectory, module ); } if ( checkoutDirectory.exists() ) @@ -80,12 +83,13 @@ checkoutDirectory.mkdirs(); // TODO: svn tag base, unless is HEAD, BASE, COMMITTED, PREV, rev#, {DATE} -CheckOutScmResult result = scmManager.checkOut( repository, checkoutDirectory, tag ); +CheckOutScmResult result = scmManager.checkOut( repository, new ScmFileSet( checkoutDirectory ), tag ); checkResult( result ); } -protected void checkResult( ScmResult result ) throws Exception +protected void checkResult( ScmResult result ) +throws Exception { if ( !result.isSuccess() ) { @@ -98,7 +102,8 @@ } } -public void update() throws Exception +public void update() +throws Exception { // TODO: can this be shared more? Embedder embedder = getEmbedder(); @@ -107,12 +112,14 @@ ScmRepository repository = scmManager.makeScmRepository( url ); // TODO: svn tag base, unless is HEAD, BASE, COMMITTED, PREV, rev#, {DATE} -UpdateScmResult result = scmManager.update( repository, new File( workingDirectory ), tag ); +// TODO: want includes/excludes? +UpdateScmResult result = scmManager.update( repository, new ScmFileSet( new File( workingDirectory ) ), tag ); checkResult( result ); } -public void tag() throws Exception +public void tag() +throws Exception { // TODO: can this be shared more? Embedder embedder = getEmbedder(); @@ -121,7 +128,8 @@ ScmRepository repository = scmManager.makeScmRepository( url ); // TODO: svn tag base, unless is HEAD, BASE, COMMITTED, PREV, rev#, {DATE} -TagScmResult result = scmManager.tag( repository, new File( workingDirectory ), tag ); +// TODO: want includes/excludes? +TagScmResult result = scmManager.tag( repository, new ScmFileSet(