You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ev...@apache.org on 2005/10/28 11:51:24 UTC
svn commit: r329176 -
/maven/components/trunk/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java
Author: evenisse
Date: Fri Oct 28 02:51:15 2005
New Revision: 329176
URL: http://svn.apache.org/viewcvs?rev=329176&view=rev
Log:
PR: MNG-1255
Submitted by : Allan Ramirez
Reviewed by Emmanuel Venisse
Create .ssh directory $user.home if it doens't exist
Modified:
maven/components/trunk/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java
Modified: maven/components/trunk/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java?rev=329176&r1=329175&r2=329176&view=diff
==============================================================================
--- maven/components/trunk/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java (original)
+++ maven/components/trunk/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java Fri Oct 28 02:51:15 2005
@@ -104,7 +104,19 @@
" distributionManagement element";
throw new MojoExecutionException( msg );
}
+
+ String protocol = deploymentRepository.getProtocol();
+
+ if( protocol.equals( "scp" ) )
+ {
+ File sshFile = new File( System.getProperty( "user.home" ), ".ssh" );
+ if( !sshFile.exists() )
+ {
+ sshFile.mkdirs();
+ }
+ }
+
// Deploy the POM
boolean isPomArtifact = "pom".equals( packaging );
if ( !isPomArtifact )
@@ -146,4 +158,4 @@
throw new MojoExecutionException( e.getMessage(), e );
}
}
-}
\ No newline at end of file
+}
Re: svn commit: r329176 - /maven/components/trunk/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java
Posted by Brett Porter <br...@apache.org>.
Doesn't this belong in the Wagon?
evenisse@apache.org wrote:
> Author: evenisse
> Date: Fri Oct 28 02:51:15 2005
> New Revision: 329176
>
> URL: http://svn.apache.org/viewcvs?rev=329176&view=rev
> Log:
> PR: MNG-1255
> Submitted by : Allan Ramirez
> Reviewed by Emmanuel Venisse
> Create .ssh directory $user.home if it doens't exist
>
> Modified:
> maven/components/trunk/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java
>
> Modified: maven/components/trunk/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java
> URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java?rev=329176&r1=329175&r2=329176&view=diff
> ==============================================================================
> --- maven/components/trunk/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java (original)
> +++ maven/components/trunk/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java Fri Oct 28 02:51:15 2005
> @@ -104,7 +104,19 @@
> " distributionManagement element";
> throw new MojoExecutionException( msg );
> }
> +
> + String protocol = deploymentRepository.getProtocol();
> +
> + if( protocol.equals( "scp" ) )
> + {
> + File sshFile = new File( System.getProperty( "user.home" ), ".ssh" );
>
> + if( !sshFile.exists() )
> + {
> + sshFile.mkdirs();
> + }
> + }
> +
> // Deploy the POM
> boolean isPomArtifact = "pom".equals( packaging );
> if ( !isPomArtifact )
> @@ -146,4 +158,4 @@
> throw new MojoExecutionException( e.getMessage(), e );
> }
> }
> -}
> \ No newline at end of file
> +}
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: svn commit: r329176 - /maven/components/trunk/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java
Posted by Brett Porter <br...@apache.org>.
Doesn't this belong in the Wagon?
evenisse@apache.org wrote:
> Author: evenisse
> Date: Fri Oct 28 02:51:15 2005
> New Revision: 329176
>
> URL: http://svn.apache.org/viewcvs?rev=329176&view=rev
> Log:
> PR: MNG-1255
> Submitted by : Allan Ramirez
> Reviewed by Emmanuel Venisse
> Create .ssh directory $user.home if it doens't exist
>
> Modified:
> maven/components/trunk/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java
>
> Modified: maven/components/trunk/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java
> URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java?rev=329176&r1=329175&r2=329176&view=diff
> ==============================================================================
> --- maven/components/trunk/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java (original)
> +++ maven/components/trunk/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java Fri Oct 28 02:51:15 2005
> @@ -104,7 +104,19 @@
> " distributionManagement element";
> throw new MojoExecutionException( msg );
> }
> +
> + String protocol = deploymentRepository.getProtocol();
> +
> + if( protocol.equals( "scp" ) )
> + {
> + File sshFile = new File( System.getProperty( "user.home" ), ".ssh" );
>
> + if( !sshFile.exists() )
> + {
> + sshFile.mkdirs();
> + }
> + }
> +
> // Deploy the POM
> boolean isPomArtifact = "pom".equals( packaging );
> if ( !isPomArtifact )
> @@ -146,4 +158,4 @@
> throw new MojoExecutionException( e.getMessage(), e );
> }
> }
> -}
> \ No newline at end of file
> +}
>
>