Author: sisbell Date: Sun Jul 29 23:02:14 2007 New Revision: 560877 URL: http://svn.apache.org/viewvc?view=rev&rev=560877 Log: The repository packager was including the GAC assemblies. Now it does not include these.
Modified: incubator/nmaven/trunk/plugins/maven-repository-plugin/src/main/java/org/apache/maven/dotnet/plugin/repository/RepositoryAssemblerMojo.java Modified: incubator/nmaven/trunk/plugins/maven-repository-plugin/src/main/java/org/apache/maven/dotnet/plugin/repository/RepositoryAssemblerMojo.java URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-repository-plugin/src/main/java/org/apache/maven/dotnet/plugin/repository/RepositoryAssemblerMojo.java?view=diff&rev=560877&r1=560876&r2=560877 ============================================================================== --- incubator/nmaven/trunk/plugins/maven-repository-plugin/src/main/java/org/apache/maven/dotnet/plugin/repository/RepositoryAssemblerMojo.java (original) +++ incubator/nmaven/trunk/plugins/maven-repository-plugin/src/main/java/org/apache/maven/dotnet/plugin/repository/RepositoryAssemblerMojo.java Sun Jul 29 23:02:14 2007 @@ -61,6 +61,11 @@ private File localRepository; /** + * @parameter expression="${withGac}" + */ + private boolean withGac = false; + + /** * @component */ private AssemblyResolver assemblyResolver; @@ -150,7 +155,7 @@ } catch ( IOException e ) { - throw new MojoExecutionException(e.getMessage()); + throw new MojoExecutionException( e.getMessage() ); } for ( Artifact artifact : (Set<Artifact>) project.getDependencyArtifacts() ) @@ -168,7 +173,11 @@ try { - artifactDeployer.deploy( artifact.getFile(), artifact, deploymentRepository, localArtifactRepository ); + if ( withGac || !artifact.getType().startsWith( "gac" ) ) + { + artifactDeployer.deploy( artifact.getFile(), artifact, deploymentRepository, + localArtifactRepository ); + } //Deploy parent poms for ( Artifact pomArtifact : pomParentArtifacts ) {