Return-Path: Delivered-To: apmail-maven-continuum-commits-archive@www.apache.org Received: (qmail 41761 invoked from network); 6 Sep 2005 21:36:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Sep 2005 21:36:44 -0000 Received: (qmail 83882 invoked by uid 500); 6 Sep 2005 21:36:43 -0000 Delivered-To: apmail-maven-continuum-commits-archive@maven.apache.org Received: (qmail 83866 invoked by uid 500); 6 Sep 2005 21:36:43 -0000 Mailing-List: contact continuum-commits-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: continuum-dev@maven.apache.org Delivered-To: mailing list continuum-commits@maven.apache.org Received: (qmail 83841 invoked by uid 99); 6 Sep 2005 21:36:42 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 06 Sep 2005 14:36:40 -0700 Received: (qmail 41744 invoked by uid 65534); 6 Sep 2005 21:36:40 -0000 Message-ID: <20050906213640.41743.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r279123 [1/3] - in /maven/continuum/trunk/continuum-updater: ./ src/ src/assemble/ src/bin/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/maven/ src/main/java/org/apache/maven/continuum/ src/... Date: Tue, 06 Sep 2005 21:36:35 -0000 To: continuum-commits@maven.apache.org From: evenisse@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: evenisse Date: Tue Sep 6 14:36:03 2005 New Revision: 279123 URL: http://svn.apache.org/viewcvs?rev=279123&view=rev Log: Start of continuum updater. Added: maven/continuum/trunk/continuum-updater/ (with props) maven/continuum/trunk/continuum-updater/pom.xml (with props) maven/continuum/trunk/continuum-updater/src/ maven/continuum/trunk/continuum-updater/src/assemble/ maven/continuum/trunk/continuum-updater/src/assemble/bin.xml (with props) maven/continuum/trunk/continuum-updater/src/bin/ maven/continuum/trunk/continuum-updater/src/bin/updater maven/continuum/trunk/continuum-updater/src/bin/updater.bat (with props) maven/continuum/trunk/continuum-updater/src/bin/updater.conf maven/continuum/trunk/continuum-updater/src/main/ maven/continuum/trunk/continuum-updater/src/main/java/ maven/continuum/trunk/continuum-updater/src/main/java/org/ maven/continuum/trunk/continuum-updater/src/main/java/org/apache/ maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/ maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/ maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/ maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/AntProject.java (with props) maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumBuild.java (with props) maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumDeveloper.java (with props) maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumJPoxStore.java (with props) maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumNotifier.java (with props) maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumProject.java (with props) maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/MavenOneProject.java (with props) maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/MavenTwoProject.java (with props) maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ShellProject.java (with props) maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/scm/ maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/scm/v1_0_alpha_3/ maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/scm/v1_0_alpha_3/CheckOutScmResult.java (with props) maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/scm/v1_0_alpha_3/ScmFile.java (with props) maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/scm/v1_0_alpha_3/ScmResult.java (with props) maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/scm/v1_0_alpha_3/UpdateScmResult.java (with props) maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/updater/ maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/updater/DefaultUpdaterManager.java (with props) maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/updater/Updater.java (with props) maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/updater/UpdaterForContinuumOneAlphaThree.java (with props) maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/updater/UpdaterManager.java (with props) maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/updater/cli/ maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/updater/cli/UpdaterCli.java (with props) maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/updater/exception/ maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/updater/exception/UpdaterException.java (with props) maven/continuum/trunk/continuum-updater/src/main/mdo/ maven/continuum/trunk/continuum-updater/src/main/mdo/updater.mdo maven/continuum/trunk/continuum-updater/src/main/resources/ maven/continuum/trunk/continuum-updater/src/main/resources/updater.xml (with props) Propchange: maven/continuum/trunk/continuum-updater/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Tue Sep 6 14:36:03 2005 @@ -0,0 +1 @@ +target Added: maven/continuum/trunk/continuum-updater/pom.xml URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-updater/pom.xml?rev=279123&view=auto ============================================================================== --- maven/continuum/trunk/continuum-updater/pom.xml (added) +++ maven/continuum/trunk/continuum-updater/pom.xml Tue Sep 6 14:36:03 2005 @@ -0,0 +1,73 @@ + + 4.0.0 + + org.apache.maven.continuum + continuum-parent + 1.0-beta-1-SNAPSHOT + + continuum-updater + 1.0-beta-1-SNAPSHOT + Continuum Updater + + + org.apache.maven.continuum + continuum-store + + + commons-cli + commons-cli + 1.0-beta-2 + + + plexus + plexus-jdo2 + + + plexus + plexus-container-default + 1.0-alpha-6-SNAPSHOT + + + + + + maven-assembly-plugin + + src/assemble/bin.xml + continuum-updater-1.0-beta-1 + + + + org.codehaus.modello + modello-maven-plugin + 1.0-alpha-4-SNAPSHOT + + 1.0.0 + false + src/main/mdo/updater.mdo + + + + + java + xpp3-reader + xpp3-writer + + + + + + maven-plexus-plugin + 1.1-alpha-5 + + + foo + + descriptor + + + + + + + Propchange: maven/continuum/trunk/continuum-updater/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/continuum/trunk/continuum-updater/pom.xml ------------------------------------------------------------------------------ svn:keywords = "Author Date Id Revision" Added: maven/continuum/trunk/continuum-updater/src/assemble/bin.xml URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-updater/src/assemble/bin.xml?rev=279123&view=auto ============================================================================== --- maven/continuum/trunk/continuum-updater/src/assemble/bin.xml (added) +++ maven/continuum/trunk/continuum-updater/src/assemble/bin.xml Tue Sep 6 14:36:03 2005 @@ -0,0 +1,70 @@ + + bin + + tar.gz + tar.bz2 + zip + + + + + README* + LICENSE* + NOTICE* + + + + src/bin + bin + + *.bat + *.conf + + dos + + + src/bin + bin + + updater + + unix + 0755 + + + target + lib + + continuum-updater-*.jar + + + continuum-updater-*-sources.jar + + + + + + core + + plexus:plexus-container-default + plexus:plexus-utils + + + + core/boot + + classworlds:classworlds + + + + lib + + plexus:plexus-container-default + classworlds:classworlds + plexus:plexus-utils + + junit:junit + + + + Propchange: maven/continuum/trunk/continuum-updater/src/assemble/bin.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/continuum/trunk/continuum-updater/src/assemble/bin.xml ------------------------------------------------------------------------------ svn:keywords = "Author Date Id Revision" Added: maven/continuum/trunk/continuum-updater/src/bin/updater URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-updater/src/bin/updater?rev=279123&view=auto ============================================================================== --- maven/continuum/trunk/continuum-updater/src/bin/updater (added) +++ maven/continuum/trunk/continuum-updater/src/bin/updater Tue Sep 6 14:36:03 2005 @@ -0,0 +1,121 @@ +#!/bin/sh +# ---------------------------------------------------------------------------- +# Copyright 2001-2005 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. +# ---------------------------------------------------------------------------- + +# OS specific support. $var _must_ be set to either true or false. +cygwin=false; +darwin=false; +case "`uname`" in + CYGWIN*) cygwin=true ;; + Darwin*) darwin=true + if [ -z "$JAVA_VERSION" ] ; then + JAVA_VERSION="CurrentJDK" + else + echo "Using Java version: $JAVA_VERSION" + fi + if [ -z "$JAVA_HOME" ] ; then + JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home + fi + ;; +esac + +if [ -z "$C1_UPDATER_HOME" ] ; then + # try to find Continuum Updater + if [ -d /opt/continuum_updater ] ; then + C1_UPDATER_HOME=/opt/continuum_updater + fi + + if [ -d "$HOME/continuum_updater" ] ; then + C1_UPDATER_HOME="$HOME/continuum_updater" + fi + + ## resolve links - $0 may be a link to continuum's home + PRG="$0" + saveddir=`pwd` + + # need this for relative symlinks + PRGDIR=`dirname "$PRG"` + cd "$PRGDIR" + + while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '.*/.*' > /dev/null; then + PRG="$link" + else + PRG="$PRGDIR/$link" + fi + done + + C1_UPDATER_HOME="$PRGDIR/.." + + # make it fully qualified + C1_UPDATER_HOME=`cd "$C1_UPDATER_HOME" && pwd` + + cd "$saveddir" +fi + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$C1_UPDATER_HOME" ] && + C1_UPDATER_HOME=`cygpath --unix "$C1_UPDATER_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --unix "$CLASSPATH"` +fi + +if [ -z "$JAVACMD" ] ; then + if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + else + JAVACMD=java + fi +fi + +if [ ! -x "$JAVACMD" ] ; then + echo "Error: JAVA_HOME is not defined correctly." + echo " We cannot execute $JAVACMD" + exit 1 +fi + +if [ -z "$JAVA_HOME" ] ; then + echo "Warning: JAVA_HOME environment variable is not set." +fi + +CLASSWORLDS_LAUNCHER=org.codehaus.classworlds.Launcher + +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + [ -n "$C1_UPDATER_HOME" ] && + C1_UPDATER_HOME=`cygpath --path --windows "$C1_UPDATER_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + [ -n "$HOME" ] && + HOME=`cygpath --path --windows "$HOME"` +fi + +exec "$JAVACMD" \ + -classpath "${C1_UPDATER_HOME}"/core/boot/classworlds-*.jar \ + "-Dclassworlds.conf=${C1_UPDATER_HOME}/bin/updater.conf" \ + "-Dmaven.home=${C1_UPDATER_HOME}" \ + ${CLASSWORLDS_LAUNCHER} $@ + Added: maven/continuum/trunk/continuum-updater/src/bin/updater.bat URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-updater/src/bin/updater.bat?rev=279123&view=auto ============================================================================== --- maven/continuum/trunk/continuum-updater/src/bin/updater.bat (added) +++ maven/continuum/trunk/continuum-updater/src/bin/updater.bat Tue Sep 6 14:36:03 2005 @@ -0,0 +1,139 @@ +@REM ---------------------------------------------------------------------------- +@REM Copyright 2001-2005 The Apache Software Foundation. +@REM +@REM Licensed under the Apache License, Version 2.0 (the "License"); +@REM you may not use this file except in compliance with the License. +@REM You may obtain a copy of the License at +@REM +@REM http://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, software +@REM distributed under the License is distributed on an "AS IS" BASIS, +@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@REM See the License for the specific language governing permissions and +@REM limitations under the License. +@REM ---------------------------------------------------------------------------- +@REM + +@REM ---------------------------------------------------------------------------- +@REM Continuum Updater Start Up Batch script +@REM +@REM Required ENV vars: +@REM JAVA_HOME - location of a JDK home dir +@REM ---------------------------------------------------------------------------- + +@echo off + +@REM set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" @setlocal + +set ERROR_CODE=0 + +@REM ==== START VALIDATION ==== +if not "%JAVA_HOME%" == "" goto OkJHome + +echo. +echo ERROR: JAVA_HOME not found in your environment. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation +echo. +set ERROR_CODE=1 +goto end + +:OkJHome +if exist "%JAVA_HOME%\bin\java.exe" goto chkMHome + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory. +echo JAVA_HOME = %JAVA_HOME% +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation +echo. +set ERROR_CODE=1 +goto end + +:chkMHome +if not "%C1_UPDATER_HOME%"=="" goto valMHome + +if "%OS%"=="Windows_NT" SET C1_UPDATER_HOME=%~dps0\.. +if not "%C1_UPDATER_HOME%"=="" goto valMHome + +echo. +echo ERROR: C1_UPDATER_HOME not found in your environment. +echo Please set the C1_UPDATER_HOME variable in your environment to match the +echo location of the Continuum Updater installation +echo. +set ERROR_CODE=1 +goto end + +:valMHome +if exist "%C1_UPDATER_HOME%\bin\updater.bat" goto init + +echo. +echo ERROR: C1_UPDATER_HOME is set to an invalid directory. +echo C1_UPDATER_HOME = %C1_UPDATER_HOME% +echo Please set the C1_UPDATER_HOME variable in your environment to match the +echo location of the Continuum Updater installation +echo. +set ERROR_CODE=1 +goto end +@REM ==== END VALIDATION ==== + +:init +@REM Decide how to startup depending on the version of windows + +@REM -- Win98ME +if NOT "%OS%"=="Windows_NT" goto Win9xArg + +@REM -- 4NT shell +if "%eval[2+2]" == "4" goto 4NTArgs + +@REM -- Regular WinNT shell +set C1_UPDATER_CMD_LINE_ARGS=%* +goto endInit + +@REM The 4NT Shell from jp software +:4NTArgs +set C1_UPDATER_CMD_LINE_ARGS=%$ +goto endInit + +:Win9xArg +@REM Slurp the command line arguments. This loop allows for an unlimited number +@REM of agruments (up to the command line limit, anyway). +set C1_UPDATER_CMD_LINE_ARGS= +:Win9xApp +if %1a==a goto endInit +set C1_UPDATER_CMD_LINE_ARGS=%C1_UPDATER_CMD_LINE_ARGS% %1 +shift +goto Win9xApp + +@REM Reaching here means variables are defined and arguments have been captured +:endInit +SET C1_UPDATER_JAVA_EXE="%JAVA_HOME%\bin\java.exe" + +@REM Start C1_UPDATER2 +for %%i in ("%C1_UPDATER_HOME%"\core\boot\classworlds-*) do set CLASSWORLDS_JAR="%%i" +%C1_UPDATER_JAVA_EXE% -classpath %CLASSWORLDS_JAR% "-Dclassworlds.conf=%C1_UPDATER_HOME%\bin\updater.conf" "-Dcontinuum.home=%C1_UPDATER_HOME%" org.codehaus.classworlds.Launcher %C1_UPDATER_CMD_LINE_ARGS% +goto end + +:error +if "%OS%"=="Windows_NT" @endlocal +set ERROR_CODE=1 + +:end +@REM set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" goto endNT + +@REM For old DOS remove the set variables from ENV - we assume they were not set +@REM before we started - at least we don't leave any baggage around +set C1_UPDATER_JAVA_EXE= +set C1_UPDATER_CMD_LINE_ARGS= +goto postExec + +:endNT +@endlocal + +:postExec + +exit /B %ERROR_CODE% + Propchange: maven/continuum/trunk/continuum-updater/src/bin/updater.bat ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/continuum/trunk/continuum-updater/src/bin/updater.bat ------------------------------------------------------------------------------ svn:keywords = "Author Date Id Revision" Added: maven/continuum/trunk/continuum-updater/src/bin/updater.conf URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-updater/src/bin/updater.conf?rev=279123&view=auto ============================================================================== --- maven/continuum/trunk/continuum-updater/src/bin/updater.conf (added) +++ maven/continuum/trunk/continuum-updater/src/bin/updater.conf Tue Sep 6 14:36:03 2005 @@ -0,0 +1,9 @@ +main is org.apache.maven.continuum.updater.cli.UpdaterCli from plexus.core.continuum + +set continuum.home default ${user.home}/continuum_updater + +[plexus.core] +load ${continuum.home}/core/*.jar + +[plexus.core.continuum] +load ${continuum.home}/lib/*.jar Added: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/AntProject.java URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/AntProject.java?rev=279123&view=auto ============================================================================== --- maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/AntProject.java (added) +++ maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/AntProject.java Tue Sep 6 14:36:03 2005 @@ -0,0 +1,78 @@ +/* + * $Id$ + */ + +package org.apache.maven.continuum.project.v1_0_alpha_3; + + //---------------------------------/ + //- Imported classes and packages -/ +//---------------------------------/ + +import java.util.*; + +/** + * Class AntProject. + * + * @version $Revision$ $Date$ + */ +public class AntProject extends ContinuumProject +implements java.io.Serializable +{ + + + //--------------------------/ + //- Class/Member Variables -/ + //--------------------------/ + + /** + * Field executable + */ + private String executable; + + /** + * Field targets + */ + private String targets; + + + //-----------/ + //- Methods -/ + //-----------/ + + /** + * Method getExecutable + */ + public String getExecutable() + { + return this.executable; + } //-- String getExecutable() + + /** + * Method getTargets + */ + public String getTargets() + { + return this.targets; + } //-- String getTargets() + + /** + * Method setExecutable + * + * @param executable + */ + public void setExecutable(String executable) + { + this.executable = executable; + } //-- void setExecutable(String) + + /** + * Method setTargets + * + * @param targets + */ + public void setTargets(String targets) + { + this.targets = targets; + } //-- void setTargets(String) + +} Propchange: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/AntProject.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/AntProject.java ------------------------------------------------------------------------------ svn:keywords = "Author Date Id Revision" Added: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumBuild.java URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumBuild.java?rev=279123&view=auto ============================================================================== --- maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumBuild.java (added) +++ maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumBuild.java Tue Sep 6 14:36:03 2005 @@ -0,0 +1,346 @@ +/* + * $Id$ + */ + +package org.apache.maven.continuum.project.v1_0_alpha_3; + + //---------------------------------/ + //- Imported classes and packages -/ +//---------------------------------/ + +import java.util.*; + +/** + * Class ContinuumBuild. + * + * @version $Revision$ $Date$ + */ +public class ContinuumBuild implements java.io.Serializable { + + + //--------------------------/ + //- Class/Member Variables -/ + //--------------------------/ + + /** + * Field project + */ + private ContinuumProject project; + + /** + * Field id + */ + private String id; + + /** + * Field state + */ + private int state = 0; + + /** + * Field forced + */ + private boolean forced = false; + + /** + * Field startTime + */ + private long startTime = 0; + + /** + * Field endTime + */ + private long endTime = 0; + + /** + * Field error + */ + private String error; + + /** + * Field success + */ + private boolean success = false; + + /** + * Field standardOutput + */ + private String standardOutput; + + /** + * Field standardError + */ + private String standardError; + + /** + * Field exitCode + */ + private int exitCode = 0; + + /** + * Field updateScmResult + */ + private UpdateScmResult updateScmResult; + + + //-----------/ + //- Methods -/ + //-----------/ + + /** + * Method breakContinuumProjectAssociation + * + * @param continuumProject + */ + public void breakContinuumProjectAssociation(ContinuumProject continuumProject) + { + if ( this.project != continuumProject ) + { + throw new IllegalStateException( "continuumProject isn't associated." ); + } + + this.project = null; + } //-- void breakContinuumProjectAssociation(ContinuumProject) + + /** + * Method createContinuumProjectAssociation + * + * @param continuumProject + */ + public void createContinuumProjectAssociation(ContinuumProject continuumProject) + { + if ( this.project != null ) + { + breakContinuumProjectAssociation( this.project ); + } + + this.project = continuumProject; + } //-- void createContinuumProjectAssociation(ContinuumProject) + + /** + * Method getEndTime + */ + public long getEndTime() + { + return this.endTime; + } //-- long getEndTime() + + /** + * Method getError + */ + public String getError() + { + return this.error; + } //-- String getError() + + /** + * Method getExitCode + */ + public int getExitCode() + { + return this.exitCode; + } //-- int getExitCode() + + /** + * Method getId + */ + public String getId() + { + return this.id; + } //-- String getId() + + /** + * Method getProject + */ + public ContinuumProject getProject() + { + return this.project; + } //-- ContinuumProject getProject() + + /** + * Method getStandardError + */ + public String getStandardError() + { + return this.standardError; + } //-- String getStandardError() + + /** + * Method getStandardOutput + */ + public String getStandardOutput() + { + return this.standardOutput; + } //-- String getStandardOutput() + + /** + * Method getStartTime + */ + public long getStartTime() + { + return this.startTime; + } //-- long getStartTime() + + /** + * Method getState + */ + public int getState() + { + return this.state; + } //-- int getState() + + /** + * Method getUpdateScmResult + */ + public UpdateScmResult getUpdateScmResult() + { + return this.updateScmResult; + } //-- UpdateScmResult getUpdateScmResult() + + /** + * Method isForced + */ + public boolean isForced() + { + return this.forced; + } //-- boolean isForced() + + /** + * Method isSuccess + */ + public boolean isSuccess() + { + return this.success; + } //-- boolean isSuccess() + + /** + * Method setEndTime + * + * @param endTime + */ + public void setEndTime(long endTime) + { + this.endTime = endTime; + } //-- void setEndTime(long) + + /** + * Method setError + * + * @param error + */ + public void setError(String error) + { + this.error = error; + } //-- void setError(String) + + /** + * Method setExitCode + * + * @param exitCode + */ + public void setExitCode(int exitCode) + { + this.exitCode = exitCode; + } //-- void setExitCode(int) + + /** + * Method setForced + * + * @param forced + */ + public void setForced(boolean forced) + { + this.forced = forced; + } //-- void setForced(boolean) + + /** + * Method setId + * + * @param id + */ + public void setId(String id) + { + this.id = id; + } //-- void setId(String) + + /** + * Method setProject + * + * @param project + */ + public void setProject(ContinuumProject project) + { + if ( this.project != null ) + { + this.project.breakContinuumBuildAssociation( this ); + } + + this.project = project; + + if ( project != null ) + { + this.project.createContinuumBuildAssociation( this ); + } + } //-- void setProject(ContinuumProject) + + /** + * Method setStandardError + * + * @param standardError + */ + public void setStandardError(String standardError) + { + this.standardError = standardError; + } //-- void setStandardError(String) + + /** + * Method setStandardOutput + * + * @param standardOutput + */ + public void setStandardOutput(String standardOutput) + { + this.standardOutput = standardOutput; + } //-- void setStandardOutput(String) + + /** + * Method setStartTime + * + * @param startTime + */ + public void setStartTime(long startTime) + { + this.startTime = startTime; + } //-- void setStartTime(long) + + /** + * Method setState + * + * @param state + */ + public void setState(int state) + { + this.state = state; + } //-- void setState(int) + + /** + * Method setSuccess + * + * @param success + */ + public void setSuccess(boolean success) + { + this.success = success; + } //-- void setSuccess(boolean) + + /** + * Method setUpdateScmResult + * + * @param updateScmResult + */ + public void setUpdateScmResult(UpdateScmResult updateScmResult) + { + this.updateScmResult = updateScmResult; + } //-- void setUpdateScmResult(UpdateScmResult) + +} Propchange: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumBuild.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumBuild.java ------------------------------------------------------------------------------ svn:keywords = "Author Date Id Revision" Added: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumDeveloper.java URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumDeveloper.java?rev=279123&view=auto ============================================================================== --- maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumDeveloper.java (added) +++ maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumDeveloper.java Tue Sep 6 14:36:03 2005 @@ -0,0 +1,99 @@ +/* + * $Id$ + */ + +package org.apache.maven.continuum.project.v1_0_alpha_3; + + //---------------------------------/ + //- Imported classes and packages -/ +//---------------------------------/ + +import java.util.*; + +/** + * Class ContinuumDeveloper. + * + * @version $Revision$ $Date$ + */ +public class ContinuumDeveloper implements java.io.Serializable { + + + //--------------------------/ + //- Class/Member Variables -/ + //--------------------------/ + + /** + * Field id + */ + private String id; + + /** + * Field name + */ + private String name; + + /** + * Field email + */ + private String email; + + + //-----------/ + //- Methods -/ + //-----------/ + + /** + * Method getEmail + */ + public String getEmail() + { + return this.email; + } //-- String getEmail() + + /** + * Method getId + */ + public String getId() + { + return this.id; + } //-- String getId() + + /** + * Method getName + */ + public String getName() + { + return this.name; + } //-- String getName() + + /** + * Method setEmail + * + * @param email + */ + public void setEmail(String email) + { + this.email = email; + } //-- void setEmail(String) + + /** + * Method setId + * + * @param id + */ + public void setId(String id) + { + this.id = id; + } //-- void setId(String) + + /** + * Method setName + * + * @param name + */ + public void setName(String name) + { + this.name = name; + } //-- void setName(String) + +} Propchange: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumDeveloper.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumDeveloper.java ------------------------------------------------------------------------------ svn:keywords = "Author Date Id Revision"