Modified: maven/continuum/trunk/continuum-core/src/main/resources/META-INF/plexus/components.xml URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/resources/META-INF/plexus/components.xml?rev=227315&r1=227314&r2=227315&view=diff ============================================================================== --- maven/continuum/trunk/continuum-core/src/main/resources/META-INF/plexus/components.xml (original) +++ maven/continuum/trunk/continuum-core/src/main/resources/META-INF/plexus/components.xml Thu Aug 4 00:04:54 2005 @@ -103,6 +103,9 @@ org.codehaus.plexus.action.ActionManager + + org.apache.maven.continuum.utils.WorkingDirectoryService + @@ -129,6 +132,9 @@ org.apache.maven.scm.manager.ScmManager + + org.apache.maven.continuum.utils.WorkingDirectoryService + @@ -145,9 +151,22 @@ + + org.apache.maven.continuum.utils.WorkingDirectoryService + org.apache.maven.continuum.utils.DefaultWorkingDirectoryService + + + org.apache.maven.continuum.store.ContinuumStore + + + org.apache.maven.continuum.configuration.ConfigurationService + + + + +the first component with role hint if no component without a role hint exists +and was looked up --> ContinuumStore modello @@ -246,6 +265,9 @@ org.apache.maven.continuum.execution.maven.m2.MavenBuilderHelper + + org.apache.maven.continuum.utils.WorkingDirectoryService + @@ -289,6 +311,9 @@ org.apache.maven.continuum.execution.maven.m1.MavenOneMetadataHelper + + org.apache.maven.continuum.utils.WorkingDirectoryService + @@ -313,6 +338,9 @@ org.codehaus.plexus.commandline.ExecutableResolver + + org.apache.maven.continuum.utils.WorkingDirectoryService + ant @@ -330,6 +358,9 @@ org.codehaus.plexus.commandline.ExecutableResolver + + org.apache.maven.continuum.utils.WorkingDirectoryService + @@ -478,6 +509,7 @@ | JDO | |--> + - jdbc:hsqldb:. + jdbc:hsqldb:faen javax.jdo.option.ConnectionUserName @@ -505,12 +535,6 @@ javax.jdo.option.ConnectionPassword - org.jpox.transactionIsolation READ_UNCOMMITTED @@ -520,27 +544,27 @@ READ_UNCOMMITTED - org.jpox.autoCreateSchema - true - - org.jpox.autoStartMechanism SchemaTable + org.jpox.autoCreateSchema + true + + org.jpox.autoStartMechanismMode Quiet - + - -> - +--> - + @@ -43,12 +45,12 @@ - + - + @@ -56,6 +58,7 @@ + @@ -63,11 +66,10 @@ - - + @@ -83,41 +85,49 @@ - + - - + + - + - + - - + + + + - - + + + + - - + + + + - - + + + + - + @@ -134,14 +144,14 @@ - + - + @@ -151,7 +161,7 @@ - + @@ -163,7 +173,7 @@ - + @@ -173,7 +183,7 @@ - + @@ -195,10 +205,12 @@ - + - - + + + + @@ -206,16 +218,16 @@ - + - + - + @@ -224,10 +236,10 @@ - + - + Modified: maven/continuum/trunk/continuum-model/src/main/resources/continuum.mdo URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-model/src/main/resources/continuum.mdo?rev=227315&r1=227314&r2=227315&view=diff ============================================================================== --- maven/continuum/trunk/continuum-model/src/main/resources/continuum.mdo (original) +++ maven/continuum/trunk/continuum-model/src/main/resources/continuum.mdo Thu Aug 4 00:04:54 2005 @@ -32,6 +32,7 @@ 1.0.0 String + scmUrl 1.0.0 @@ -43,18 +44,10 @@ String - workingDirectory + path 1.0.0 String - state 1.0.0 Modified: maven/continuum/trunk/continuum-plexus-application/plexus-jamvm.sh URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-plexus-application/plexus-jamvm.sh?rev=227315&r1=227314&r2=227315&view=diff ============================================================================== --- maven/continuum/trunk/continuum-plexus-application/plexus-jamvm.sh (original) +++ maven/continuum/trunk/continuum-plexus-application/plexus-jamvm.sh Thu Aug 4 00:04:54 2005 @@ -5,14 +5,14 @@ PWD=`pwd` GNU_CLASSPATH=$HOME/opt/classpath-HEAD/share/classpath/glibj.zip -JAVA=$HOME/opt/jamvm-1.3.0/bin/jamvm +JAVA=$HOME/opt/jamvm-1.3.2/bin/jamvm # -Xbootclasspath:$GNU_CLASSPATH \ # -verbose:{class,gc,jni} \ $JAVA \ -Xnoasyncgc \ - -classpath $PWD/target/plexus-test-runtime/core/boot/classworlds-1.1-alpha-1.jar \ + -classpath $PWD/target/plexus-test-runtime/core/boot/classworlds-1.1-alpha-2.jar \ -Dclassworlds.conf=$PWD/target/plexus-test-runtime/conf/classworlds.conf \ -Dplexus.core=$PWD/target/plexus-test-runtime/core \ -Djava.io.tmpdir=$PWD/target/plexus-test-runtime/temp \ Modified: maven/continuum/trunk/continuum-plexus-application/plexus-kaffe.sh URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-plexus-application/plexus-kaffe.sh?rev=227315&r1=227314&r2=227315&view=diff ============================================================================== --- maven/continuum/trunk/continuum-plexus-application/plexus-kaffe.sh (original) +++ maven/continuum/trunk/continuum-plexus-application/plexus-kaffe.sh Thu Aug 4 00:04:54 2005 @@ -8,13 +8,14 @@ #JAVA="$JAVA -verbose" JAVA=kaffe JAVA=$HOME/opt/kaffe/bin/kaffe +JAVA=$HOME/opt/Linux-i686/kaffe-cvs/bin/kaffe # -fullversion \ # -Xbootclasspath/p:$HOME/opt/classpath-HEAD/share/classpath/glibj.zip \ # -verbose \ $JAVA \ -Xmx128m \ - -classpath $PWD/target/plexus-test-runtime/core/boot/classworlds-1.1-alpha-1.jar \ + -classpath $PWD/target/plexus-test-runtime/core/boot/classworlds-1.1-alpha-2.jar \ -Dclassworlds.conf=$PWD/target/plexus-test-runtime/conf/classworlds.conf \ -Dplexus.core=$PWD/target/plexus-test-runtime/core \ -Djava.io.tmpdir=$PWD/target/plexus-test-runtime/temp \ Modified: maven/continuum/trunk/continuum-plexus-application/plexus-sablevm.sh URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-plexus-application/plexus-sablevm.sh?rev=227315&r1=227314&r2=227315&view=diff ============================================================================== --- maven/continuum/trunk/continuum-plexus-application/plexus-sablevm.sh (original) +++ maven/continuum/trunk/continuum-plexus-application/plexus-sablevm.sh Thu Aug 4 00:04:54 2005 @@ -8,7 +8,6 @@ JAVA=$HOME/opt/sablevm-trunk/bin/sablevm $JAVA \ - -Xbootclasspath $GNU_CLASSPATH \ -classpath $PWD/target/plexus-test-runtime/core/boot/classworlds-1.1-alpha-1.jar \ -Dclassworlds.conf=$PWD/target/plexus-test-runtime/conf/classworlds.conf \ -Dplexus.core=$PWD/target/plexus-test-runtime/core \ Modified: maven/continuum/trunk/continuum-plexus-application/pom.xml URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-plexus-application/pom.xml?rev=227315&r1=227314&r2=227315&view=diff ============================================================================== --- maven/continuum/trunk/continuum-plexus-application/pom.xml (original) +++ maven/continuum/trunk/continuum-plexus-application/pom.xml Thu Aug 4 00:04:54 2005 @@ -9,6 +9,14 @@ 1.0-beta-1-SNAPSHOT Continuum Plexus Application plexus-application + + + apache.snapshots + http://cvs.apache.org/repository + legacy + + + org.apache.maven.continuum @@ -153,9 +161,9 @@ - hsqldb - hsqldb - 1.7.3.0 + incubator-derby + derby + 10.0.2.1 runtime Modified: maven/continuum/trunk/continuum-plexus-application/src/conf/application.xml URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-plexus-application/src/conf/application.xml?rev=227315&r1=227314&r2=227315&view=diff ============================================================================== --- maven/continuum/trunk/continuum-plexus-application/src/conf/application.xml (original) +++ maven/continuum/trunk/continuum-plexus-application/src/conf/application.xml Thu Aug 4 00:04:54 2005 @@ -139,8 +139,8 @@ org.codehaus.plexus.ircbot.IrcBot - org.apache.maven.continuum.store.ContinuumStore - + org.apache.maven.continuum.store.ContinuumStore + org.apache.maven.continuum.configuration.ConfigurationService @@ -168,7 +168,7 @@ @@ -201,7 +201,7 @@ @@ -241,7 +241,7 @@ 3600 - + org.apache.maven.continuum.trigger.ContinuumTrigger quartz-alarm-clock @@ -252,7 +252,7 @@ org.apache.maven.continuum.scheduler.ContinuumScheduler - + 3600 - + org.apache.maven.continuum.network.ConnectionFactory @@ -313,22 +313,37 @@ true + org.jpox.autoCreateColumns + true + + org.jpox.autoStartMechanism SchemaTable org.jpox.autoStartMechanismMode - Quiet + Ignored + + + org.jpox.validateTables + false + + + org.jpox.validateColumns + false - - + + org.jpox.validateConstraints + false + + javax.jdo.option.ConnectionDriverName - org.hsqldb.jdbcDriver + org.apache.derby.jdbc.EmbeddedDriver javax.jdo.option.ConnectionURL - jdbc:hsqldb:${plexus.home}/database + jdbc:derby:${plexus.home}/database;create=true javax.jdo.option.ConnectionUserName @@ -338,6 +353,8 @@ javax.jdo.option.ConnectionPassword + + + + + - org.jpox.transactionIsolation - READ_UNCOMMITTED + javax.jdo.option.ConnectionDriverName + org.hsqldb.jdbcDriver - org.jpox.poid.transactionIsolation - READ_UNCOMMITTED + javax.jdo.option.ConnectionURL + jdbc:hsqldb:${plexus.home}/database + + + javax.jdo.option.ConnectionUserName + sa javax.jdo.option.ConnectionPassword + --> + + + org.jpox.transactionIsolation + READ_COMMITTED + - hsqldb.nio_data_file - false + org.jpox.poid.transactionIsolation + READ_COMMITTED @@ -410,7 +442,7 @@ file.resource.loader.cache @velocity.resource.caching@ - + @@ -503,8 +535,16 @@ WARN + org.codehaus.plexus.mailsender.MailSender + INFO + + JPOX - ERROR + INFO + + + JPOX.Cache + WARN Modified: maven/continuum/trunk/continuum-plexus-application/src/conf/configuration.xml URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-plexus-application/src/conf/configuration.xml?rev=227315&r1=227314&r2=227315&view=diff ============================================================================== --- maven/continuum/trunk/continuum-plexus-application/src/conf/configuration.xml (original) +++ maven/continuum/trunk/continuum-plexus-application/src/conf/configuration.xml Thu Aug 4 00:04:54 2005 @@ -1,3 +1,4 @@ http://localhost:8080/continuum/servlet/continuum + working-directory Modified: maven/continuum/trunk/continuum-site/src/site/apt/configuration.apt URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-site/src/site/apt/configuration.apt?rev=227315&r1=227314&r2=227315&view=diff ============================================================================== --- maven/continuum/trunk/continuum-site/src/site/apt/configuration.apt (original) +++ maven/continuum/trunk/continuum-site/src/site/apt/configuration.apt Thu Aug 4 00:04:54 2005 @@ -75,9 +75,11 @@ ** Example Jetty Configuration This is a example configuration on how to configure Jetty with one normal HTTP - listener and one proxy HTTP listener. With configuration Jetty will listen on - two ports, 8080 and 8090. Continuum can be used from either - http://localhost:8080 or http://www.company.com/continuum. + listener and one proxy HTTP listener. With this configuration Jetty will + listen on two ports; 8080 and 8090. Continuum can be used from either + http://localhost:8080 or http://www.company.com/continuum. Note that the + proxying listener will make Continuum write out URLs with the configured proxy + host and port. +----+ Modified: maven/continuum/trunk/continuum-test/pom.xml URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-test/pom.xml?rev=227315&r1=227314&r2=227315&view=diff ============================================================================== --- maven/continuum/trunk/continuum-test/pom.xml (original) +++ maven/continuum/trunk/continuum-test/pom.xml Thu Aug 4 00:04:54 2005 @@ -13,5 +13,9 @@ org.apache.maven.continuum continuum-api + + plexus + plexus-jdo2 + Modified: maven/continuum/trunk/continuum-test/src/main/java/org/apache/maven/continuum/AbstractContinuumTest.java URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-test/src/main/java/org/apache/maven/continuum/AbstractContinuumTest.java?rev=227315&r1=227314&r2=227315&view=diff ============================================================================== --- maven/continuum/trunk/continuum-test/src/main/java/org/apache/maven/continuum/AbstractContinuumTest.java (original) +++ maven/continuum/trunk/continuum-test/src/main/java/org/apache/maven/continuum/AbstractContinuumTest.java Thu Aug 4 00:04:54 2005 @@ -34,12 +34,21 @@ import org.apache.maven.continuum.store.ContinuumStoreException; import org.apache.maven.continuum.utils.ContinuumUtils; import org.codehaus.plexus.PlexusTestCase; +import org.codehaus.plexus.jdo.JdoFactory; +import org.codehaus.plexus.jdo.DefaultConfigurableJdoFactory; +import org.codehaus.plexus.jdo.ConfigurableJdoFactory; import org.codehaus.plexus.util.FileUtils; +import org.jpox.SchemaTool; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Properties; +import java.util.Iterator; +import java.util.Map; +import javax.jdo.JDOHelper; +import javax.jdo.PersistenceManagerFactory; +import javax.jdo.PersistenceManager; import java.io.IOException; /** @@ -55,6 +64,8 @@ */ private static ContinuumProjectGroup defaultProjectGroup; + private ContinuumStore store; + // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- @@ -65,6 +76,8 @@ super.setUp(); setUpConfigurationService( (ConfigurationService) lookup( ConfigurationService.ROLE ) ); + + getStore(); } public static void setUpConfigurationService( ConfigurationService configurationService ) @@ -73,6 +86,8 @@ configurationService.setInMemoryMode( true ); configurationService.setBuildOutputDirectory( getTestFile( "target/build-output" ) ); + + configurationService.setWorkingDirectory( getTestFile( "target/working-directory" ) ); } public static ContinuumProjectGroup getDefaultProjectGroup( ContinuumStore store ) @@ -102,7 +117,75 @@ protected ContinuumStore getStore() throws Exception { - return (ContinuumStore) lookup( ContinuumStore.ROLE ); + if ( store != null ) + { + return store; + } + + // ---------------------------------------------------------------------- + // Set up the JDO factory + // ---------------------------------------------------------------------- + + Object o = lookup( JdoFactory.ROLE ); + + assertEquals( DefaultConfigurableJdoFactory.class.getName(), o.getClass().getName() ); + + ConfigurableJdoFactory jdoFactory = (ConfigurableJdoFactory) o; + + jdoFactory.setPersistenceManagerFactoryClass( "org.jpox.PersistenceManagerFactoryImpl" ); + + jdoFactory.setDriverName( "org.hsqldb.jdbcDriver" ); + + jdoFactory.setUrl( "jdbc:hsqldb:mem:foo" ); + + jdoFactory.setUserName( "sa" ); + + jdoFactory.setPassword( "" ); + + jdoFactory.setProperty( "org.jpox.transactionIsolation", "READ_UNCOMMITTED" ); + + jdoFactory.setProperty( "org.jpox.poid.transactionIsolation", "READ_UNCOMMITTED" ); + + // ---------------------------------------------------------------------- + // Create the tables + // ---------------------------------------------------------------------- + + Properties properties = jdoFactory.getProperties(); + + for ( Iterator it = properties.entrySet().iterator(); it.hasNext(); ) + { + Map.Entry entry = (Map.Entry) it.next(); + + System.setProperty( (String) entry.getKey(), (String) entry.getValue() ); + } + + String[] files = new String[]{ + getTestPath( "../continuum-model/src/main/resources/META-INF/package.jdo" ), + }; + + boolean verbose = false; + + SchemaTool.createSchemaTables( files, verbose ); + + // ---------------------------------------------------------------------- + // Check the configuration + // ---------------------------------------------------------------------- + + PersistenceManagerFactory pmf = jdoFactory.getPersistenceManagerFactory(); + + assertNotNull( pmf ); + + PersistenceManager pm = pmf.getPersistenceManager(); + + pm.close(); + + // ---------------------------------------------------------------------- + // + // ---------------------------------------------------------------------- + + store = (ContinuumStore) lookup( ContinuumStore.ROLE ); + + return store; } // ---------------------------------------------------------------------- @@ -181,9 +264,6 @@ project.setCommandLineArguments( commandLineArguments ); project.setExecutorId( executorId ); - // TODO: Remove - project.setWorkingDirectory( "/tmp" ); - return project; } @@ -219,11 +299,15 @@ MavenTwoProject project ) throws Exception { - if ( project.getProjectGroup() != null ) + if ( project.getProjectGroup() == null ) { project.setProjectGroup( getDefaultProjectGroup( store ) ); } + assertNotNull( "project group == null", project.getProjectGroup() ); + + assertTrue( "!JDOHelper.isDetached( project.getProjectGroup() )", JDOHelper.isDetached( project.getProjectGroup() ) ); + // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- @@ -232,6 +316,8 @@ assertNotNull( addedProject ); + assertNotNull( "project group == null", addedProject.getProjectGroup() ); + // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- @@ -250,7 +336,9 @@ scmResult.addFile( scmFile ); - addedProject = setCheckoutDone( store, addedProject, scmResult, null, null ); +// addedProject = setCheckoutDone( store, addedProject, scmResult, null, null ); + + assertNotNull( "project group == null", addedProject.getProjectGroup() ); return (MavenTwoProject) addedProject; } @@ -313,7 +401,7 @@ project.setCheckOutErrorMessage( errorMessage ); - project.setCheckOutErrorException( ContinuumUtils.throwableToString( exception ) ); + project.setCheckOutErrorException( ContinuumUtils.throwableMessagesToString( exception ) ); return store.updateProject( project ); } Modified: maven/continuum/trunk/continuum-web/src/main/java/org/apache/maven/continuum/web/action/AddMavenTwoProject.java URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-web/src/main/java/org/apache/maven/continuum/web/action/AddMavenTwoProject.java?rev=227315&r1=227314&r2=227315&view=diff ============================================================================== --- maven/continuum/trunk/continuum-web/src/main/java/org/apache/maven/continuum/web/action/AddMavenTwoProject.java (original) +++ maven/continuum/trunk/continuum-web/src/main/java/org/apache/maven/continuum/web/action/AddMavenTwoProject.java Thu Aug 4 00:04:54 2005 @@ -10,7 +10,7 @@ /** * @author Jason van Zyl - * @version $Id:$ + * @version $Id$ */ public class AddMavenTwoProject extends AbstractEntityAction Modified: maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Summary.vm URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Summary.vm?rev=227315&r1=227314&r2=227315&view=diff ============================================================================== --- maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Summary.vm (original) +++ maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Summary.vm Thu Aug 4 00:04:54 2005 @@ -40,17 +40,17 @@ $state.generate( $item ) - $item.name - $item.version + $!item.name + $!item.version $item.buildNumber - View + View ## Operations - Edit + Edit #if ( $item.state == 1 || $item.state == 2 || $item.state == 3 || $item.state == 4 ) - Delete + Delete #else Delete #end Modified: maven/continuum/trunk/pom.xml URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/pom.xml?rev=227315&r1=227314&r2=227315&view=diff ============================================================================== --- maven/continuum/trunk/pom.xml (original) +++ maven/continuum/trunk/pom.xml Thu Aug 4 00:04:54 2005 @@ -160,6 +160,11 @@ plexus-utils 1.0.2-SNAPSHOT + + plexus + plexus-jdo2 + 1.0-alpha-2-SNAPSHOT +