donaldp     02/05/13 14:29:29

  Modified:    src/java/org/apache/avalon/phoenix/components/deployer
                        DefaultDeployer.java Resources.properties
  Log:
  Add in check so that when there is a application already deployed you can not 
redeploy without undeploying original application.
  
  Revision  Changes    Path
  1.28      +7 -0      
jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/deployer/DefaultDeployer.java
  
  Index: DefaultDeployer.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/deployer/DefaultDeployer.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- DefaultDeployer.java      11 May 2002 06:04:19 -0000      1.27
  +++ DefaultDeployer.java      13 May 2002 21:29:28 -0000      1.28
  @@ -221,6 +221,13 @@
       public void deploy( final String name, final URL location )
           throws DeploymentException
       {
  +        if( m_installations.containsKey( name ) )
  +        {
  +            final String message =
  +                REZ.getString( "deploy.already-deployed.error",
  +                               name );
  +            throw new DeploymentException( message );
  +        }
           try
           {
               //m_baseWorkDirectory
  
  
  
  1.14      +2 -1      
jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/deployer/Resources.properties
  
  Index: Resources.properties
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/deployer/Resources.properties,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- Resources.properties      11 May 2002 02:05:13 -0000      1.13
  +++ Resources.properties      13 May 2002 21:29:28 -0000      1.14
  @@ -8,4 +8,5 @@
   deploy.workdir-nocreate.error=Failed to create work directory {0}.
   deploy.workdir-notadir.error=Work directory {0} is not a directory.
   deploy.create-dir.notice=Work directory does not exist, attempting to create 
directory {0}.
  -deploy.undeploy-indispose.error=Error undeploying application "{0}" when 
disposing Deployer. (Reason: {1})
  \ No newline at end of file
  +deploy.undeploy-indispose.error=Error undeploying application "{0}" when 
disposing Deployer. (Reason: {1})
  +deploy.already-deployed.error=Can not deploy application "{0}" as there is 
already an applicaiton deployed using that name.
  \ No newline at end of file
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to