You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-commits@incubator.apache.org by br...@apache.org on 2011/12/22 06:54:53 UTC
svn commit: r1222072 [10/13] - in /incubator/npanday/trunk: ./
components/dotnet-executable/src/main/java/npanday/executable/
components/dotnet-executable/src/main/java/npanday/executable/compiler/
components/dotnet-executable/src/main/java/npanday/exe...
Modified: incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/java/npanday/plugin/aspnet/PackagePreparationConfigurationSource.java
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/java/npanday/plugin/aspnet/PackagePreparationConfigurationSource.java?rev=1222072&r1=1222071&r2=1222072&view=diff
==============================================================================
--- incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/java/npanday/plugin/aspnet/PackagePreparationConfigurationSource.java (original)
+++ incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/java/npanday/plugin/aspnet/PackagePreparationConfigurationSource.java Thu Dec 22 06:54:49 2011
@@ -1,225 +1,225 @@
-package npanday.plugin.aspnet;
-
-import npanday.PathUtil;
-import org.apache.maven.archiver.MavenArchiveConfiguration;
-import org.apache.maven.artifact.repository.ArtifactRepository;
-import org.apache.maven.execution.MavenSession;
-import org.apache.maven.plugin.assembly.AssemblerConfigurationSource;
-import org.apache.maven.project.MavenProject;
-import org.apache.maven.shared.filtering.MavenFileFilter;
-
-import java.io.File;
-import java.util.Collections;
-import java.util.List;
-
-
-/**
- * Used as a quite static configuration source for preparation of NPanday
- * packages.
- *
- * @author <a href="mailto:lcorneliussen@apache.org">Lars Corneliussen</a>
- */
-public class PackagePreparationConfigurationSource
- implements AssemblerConfigurationSource
-{
- private File outputDirectory;
-
- private String finalName;
-
- private String assemblyDescriptorRef;
-
- private String assemblyDescriptorFile;
-
- private MavenSession session;
-
- private MavenFileFilter fileFilter;
-
- private MavenProject project;
-
- public PackagePreparationConfigurationSource( MavenSession session, MavenFileFilter fileFilter )
- {
- this.session = session;
- this.project = session.getCurrentProject();
- this.fileFilter = fileFilter;
-
- File prepackageDir = PathUtil.getPreparedPackageFolder( project );
- outputDirectory = prepackageDir.getParentFile();
- finalName = prepackageDir.getName();
- }
-
- public String getDescriptor()
- {
- return null;
- }
-
- public String getDescriptorId()
- {
- return null;
- }
-
- public String[] getDescriptors()
- {
- if (assemblyDescriptorFile != null){
- return new String[] {assemblyDescriptorFile};
- }
-
- return new String[0];
- }
-
- public String[] getDescriptorReferences()
- {
- if ( assemblyDescriptorRef != null){
- return new String[] { assemblyDescriptorRef };
- }
-
- return new String[0];
- }
-
- public File getDescriptorSourceDirectory()
- {
- return null;
- }
-
- public File getBasedir()
- {
- return project.getBasedir();
- }
-
- public MavenProject getProject()
- {
- return project;
- }
-
- public boolean isSiteIncluded()
- {
- return false;
- }
-
- public File getSiteDirectory()
- {
- throw new UnsupportedOperationException();
- }
-
- public String getFinalName()
- {
- return finalName;
- }
-
- public boolean isAssemblyIdAppended()
- {
- return false;
- }
-
- public String getClassifier()
- {
- throw new UnsupportedOperationException("The classifier will be part of the final name already.");
- }
-
- public String getTarLongFileMode()
- {
- throw new UnsupportedOperationException("Tar is not supported for packaging preparations!");
- }
-
- public File getOutputDirectory()
- {
- return this.outputDirectory;
- }
-
- public File getWorkingDirectory()
- {
- return new File(project.getBuild().getDirectory(), "packages\\temp\\workdir");
- }
-
- public MavenArchiveConfiguration getJarArchiveConfiguration()
- {
- throw new UnsupportedOperationException();
- }
-
- public ArtifactRepository getLocalRepository()
- {
- return session.getLocalRepository();
- }
-
- public File getTemporaryRootDirectory()
- {
- return new File(project.getBuild().getDirectory(), "packages\\temp\\tmpdir");
- }
-
- public File getArchiveBaseDirectory()
- {
- return project.getBasedir();
- }
-
- public List<String> getFilters()
- {
- return null;
- }
-
- public List<MavenProject> getReactorProjects()
- {
- throw new UnsupportedOperationException();
- }
-
- public List<ArtifactRepository> getRemoteRepositories()
- {
- return Collections.<ArtifactRepository>emptyList();
- }
-
- public boolean isDryRun()
- {
- return false;
- }
-
- public boolean isIgnoreDirFormatExtensions()
- {
- return true;
- }
-
- public boolean isIgnoreMissingDescriptor()
- {
- return false;
- }
-
- public MavenSession getMavenSession()
- {
- return session;
- }
-
- public String getArchiverConfig()
- {
- // we won't do any archiving
- return null;
- }
-
- public MavenFileFilter getMavenFileFilter()
- {
- return fileFilter;
- }
-
- public boolean isUpdateOnly()
- {
- return false;
- }
-
- public boolean isUseJvmChmod()
- {
- return false;
- }
-
- public boolean isIgnorePermissions()
- {
- return false;
- }
-
- public void setDescriptorFile( String assemblyDescriptorFile )
- {
- this.assemblyDescriptorFile = assemblyDescriptorFile;
- }
-
- public void setDescriptorRef( String assemblyDescriptorRef )
- {
- this.assemblyDescriptorRef = assemblyDescriptorRef;
- }
-}
-
-
+package npanday.plugin.aspnet;
+
+import npanday.PathUtil;
+import org.apache.maven.archiver.MavenArchiveConfiguration;
+import org.apache.maven.artifact.repository.ArtifactRepository;
+import org.apache.maven.execution.MavenSession;
+import org.apache.maven.plugin.assembly.AssemblerConfigurationSource;
+import org.apache.maven.project.MavenProject;
+import org.apache.maven.shared.filtering.MavenFileFilter;
+
+import java.io.File;
+import java.util.Collections;
+import java.util.List;
+
+
+/**
+ * Used as a quite static configuration source for preparation of NPanday
+ * packages.
+ *
+ * @author <a href="mailto:lcorneliussen@apache.org">Lars Corneliussen</a>
+ */
+public class PackagePreparationConfigurationSource
+ implements AssemblerConfigurationSource
+{
+ private File outputDirectory;
+
+ private String finalName;
+
+ private String assemblyDescriptorRef;
+
+ private String assemblyDescriptorFile;
+
+ private MavenSession session;
+
+ private MavenFileFilter fileFilter;
+
+ private MavenProject project;
+
+ public PackagePreparationConfigurationSource( MavenSession session, MavenFileFilter fileFilter )
+ {
+ this.session = session;
+ this.project = session.getCurrentProject();
+ this.fileFilter = fileFilter;
+
+ File prepackageDir = PathUtil.getPreparedPackageFolder( project );
+ outputDirectory = prepackageDir.getParentFile();
+ finalName = prepackageDir.getName();
+ }
+
+ public String getDescriptor()
+ {
+ return null;
+ }
+
+ public String getDescriptorId()
+ {
+ return null;
+ }
+
+ public String[] getDescriptors()
+ {
+ if (assemblyDescriptorFile != null){
+ return new String[] {assemblyDescriptorFile};
+ }
+
+ return new String[0];
+ }
+
+ public String[] getDescriptorReferences()
+ {
+ if ( assemblyDescriptorRef != null){
+ return new String[] { assemblyDescriptorRef };
+ }
+
+ return new String[0];
+ }
+
+ public File getDescriptorSourceDirectory()
+ {
+ return null;
+ }
+
+ public File getBasedir()
+ {
+ return project.getBasedir();
+ }
+
+ public MavenProject getProject()
+ {
+ return project;
+ }
+
+ public boolean isSiteIncluded()
+ {
+ return false;
+ }
+
+ public File getSiteDirectory()
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public String getFinalName()
+ {
+ return finalName;
+ }
+
+ public boolean isAssemblyIdAppended()
+ {
+ return false;
+ }
+
+ public String getClassifier()
+ {
+ throw new UnsupportedOperationException("The classifier will be part of the final name already.");
+ }
+
+ public String getTarLongFileMode()
+ {
+ throw new UnsupportedOperationException("Tar is not supported for packaging preparations!");
+ }
+
+ public File getOutputDirectory()
+ {
+ return this.outputDirectory;
+ }
+
+ public File getWorkingDirectory()
+ {
+ return new File(project.getBuild().getDirectory(), "packages\\temp\\workdir");
+ }
+
+ public MavenArchiveConfiguration getJarArchiveConfiguration()
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public ArtifactRepository getLocalRepository()
+ {
+ return session.getLocalRepository();
+ }
+
+ public File getTemporaryRootDirectory()
+ {
+ return new File(project.getBuild().getDirectory(), "packages\\temp\\tmpdir");
+ }
+
+ public File getArchiveBaseDirectory()
+ {
+ return project.getBasedir();
+ }
+
+ public List<String> getFilters()
+ {
+ return null;
+ }
+
+ public List<MavenProject> getReactorProjects()
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public List<ArtifactRepository> getRemoteRepositories()
+ {
+ return Collections.<ArtifactRepository>emptyList();
+ }
+
+ public boolean isDryRun()
+ {
+ return false;
+ }
+
+ public boolean isIgnoreDirFormatExtensions()
+ {
+ return true;
+ }
+
+ public boolean isIgnoreMissingDescriptor()
+ {
+ return false;
+ }
+
+ public MavenSession getMavenSession()
+ {
+ return session;
+ }
+
+ public String getArchiverConfig()
+ {
+ // we won't do any archiving
+ return null;
+ }
+
+ public MavenFileFilter getMavenFileFilter()
+ {
+ return fileFilter;
+ }
+
+ public boolean isUpdateOnly()
+ {
+ return false;
+ }
+
+ public boolean isUseJvmChmod()
+ {
+ return false;
+ }
+
+ public boolean isIgnorePermissions()
+ {
+ return false;
+ }
+
+ public void setDescriptorFile( String assemblyDescriptorFile )
+ {
+ this.assemblyDescriptorFile = assemblyDescriptorFile;
+ }
+
+ public void setDescriptorRef( String assemblyDescriptorRef )
+ {
+ this.assemblyDescriptorRef = assemblyDescriptorRef;
+ }
+}
+
+
Propchange: incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/java/npanday/plugin/aspnet/PackagePreparationConfigurationSource.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/resources/META-INF/plexus/components.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/resources/META-INF/plexus/components.xml?rev=1222072&r1=1222071&r2=1222072&view=diff
==============================================================================
--- incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/resources/META-INF/plexus/components.xml (original)
+++ incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/resources/META-INF/plexus/components.xml Thu Dec 22 06:54:49 2011
@@ -1,26 +1,26 @@
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you 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.
--->
-<component-set>
- <components>
- <component>
- <role>npanday.plugin.aspnet.MixinAsssemblyReader</role>
- <implementation>npanday.plugin.aspnet.MixinAsssemblyReader</implementation>
- </component>
- </components>
-</component-set>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you 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.
+-->
+<component-set>
+ <components>
+ <component>
+ <role>npanday.plugin.aspnet.MixinAsssemblyReader</role>
+ <implementation>npanday.plugin.aspnet.MixinAsssemblyReader</implementation>
+ </component>
+ </components>
+</component-set>
Propchange: incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/resources/META-INF/plexus/components.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/resources/assemblies/aspnet-webapp-defaults.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/resources/assemblies/aspnet-webapp-defaults.xml?rev=1222072&r1=1222071&r2=1222072&view=diff
==============================================================================
--- incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/resources/assemblies/aspnet-webapp-defaults.xml (original)
+++ incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/resources/assemblies/aspnet-webapp-defaults.xml Thu Dec 22 06:54:49 2011
@@ -1,18 +1,18 @@
-<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
- <id>aspnet-webapp-defaults</id>
- <includeBaseDirectory>false</includeBaseDirectory>
- <formats>
- <format>dir</format>
- </formats>
-
- <componentDescriptors>
- <!--
- Just specifying bare file names would need a fix for:
- http://jira.codehaus.org/browse/MASSEMBLY-585
- -->
- <componentDescriptor>/assemblies/components/aspnet-webapp-binaries.xml</componentDescriptor>
- <componentDescriptor>/assemblies/components/aspnet-webapp-contents.xml</componentDescriptor>
- </componentDescriptors>
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
+ <id>aspnet-webapp-defaults</id>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <formats>
+ <format>dir</format>
+ </formats>
+
+ <componentDescriptors>
+ <!--
+ Just specifying bare file names would need a fix for:
+ http://jira.codehaus.org/browse/MASSEMBLY-585
+ -->
+ <componentDescriptor>/assemblies/components/aspnet-webapp-binaries.xml</componentDescriptor>
+ <componentDescriptor>/assemblies/components/aspnet-webapp-contents.xml</componentDescriptor>
+ </componentDescriptors>
</assembly>
\ No newline at end of file
Propchange: incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/resources/assemblies/aspnet-webapp-defaults.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/resources/assemblies/components/aspnet-webapp-binaries.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/resources/assemblies/components/aspnet-webapp-binaries.xml?rev=1222072&r1=1222071&r2=1222072&view=diff
==============================================================================
--- incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/resources/assemblies/components/aspnet-webapp-binaries.xml (original)
+++ incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/resources/assemblies/components/aspnet-webapp-binaries.xml Thu Dec 22 06:54:49 2011
@@ -1,12 +1,12 @@
-<component xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/component/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/component/1.1.2 http://maven.apache.org/xsd/component-1.1.2.xsd">
- <dependencySets>
- <dependencySet>
- <useProjectArtifact>true</useProjectArtifact>
- <useTransitiveDependencies>true</useTransitiveDependencies>
- <scope>runtime</scope>
- <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
- <outputDirectory>bin</outputDirectory>
- </dependencySet>
- </dependencySets>
+<component xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/component/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/component/1.1.2 http://maven.apache.org/xsd/component-1.1.2.xsd">
+ <dependencySets>
+ <dependencySet>
+ <useProjectArtifact>true</useProjectArtifact>
+ <useTransitiveDependencies>true</useTransitiveDependencies>
+ <scope>runtime</scope>
+ <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
+ <outputDirectory>bin</outputDirectory>
+ </dependencySet>
+ </dependencySets>
</component>
\ No newline at end of file
Propchange: incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/resources/assemblies/components/aspnet-webapp-binaries.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/resources/assemblies/components/aspnet-webapp-contents.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/resources/assemblies/components/aspnet-webapp-contents.xml?rev=1222072&r1=1222071&r2=1222072&view=diff
==============================================================================
--- incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/resources/assemblies/components/aspnet-webapp-contents.xml (original)
+++ incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/resources/assemblies/components/aspnet-webapp-contents.xml Thu Dec 22 06:54:49 2011
@@ -1,45 +1,45 @@
-<component xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/component/1.1.2"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/component/1.1.2 http://maven.apache.org/xsd/component-1.1.2.xsd">
- <fileSets>
- <fileSet>
- <useDefaultExcludes>true</useDefaultExcludes>
- <directory>${project.basedir}</directory>
- <outputDirectory>/</outputDirectory>
- <includes>
- <!-- .NET specifics -->
- <include>**/*.aspx</include>
- <include>**/*.ascx</include>
- <include>**/*.asax</include>
-
- <!-- web developers-->
- <include>**/*.css</include>
- <include>**/*.js</include>
- <include>**/*.htm</include>
- <include>**/*.html</include>
- <include>**/*.asax</include>
- <include>robots.txt</include>
-
- <!-- graphics -->
- <include>**/*.jpg</include>
- <include>**/*.jpeg</include>
- <include>**/*.png</include>
- <include>**/*.gif</include>
- <include>**/*.bmp</include>
- <include>**/*.ico</include>
-
- <!-- silverlight? -->
-
- <!-- flash -->
- <include>**/*.swf</include>
- <include>**/*.flv</include>
- <include>crossdomain.xml</include>
- </includes>
- <excludes>
- <exclude>bin/**/*.*</exclude>
- <exclude>obj/**/*.*</exclude>
- <exclude>target/**/*.*</exclude>
- </excludes>
- </fileSet>
- </fileSets>
+<component xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/component/1.1.2"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/component/1.1.2 http://maven.apache.org/xsd/component-1.1.2.xsd">
+ <fileSets>
+ <fileSet>
+ <useDefaultExcludes>true</useDefaultExcludes>
+ <directory>${project.basedir}</directory>
+ <outputDirectory>/</outputDirectory>
+ <includes>
+ <!-- .NET specifics -->
+ <include>**/*.aspx</include>
+ <include>**/*.ascx</include>
+ <include>**/*.asax</include>
+
+ <!-- web developers-->
+ <include>**/*.css</include>
+ <include>**/*.js</include>
+ <include>**/*.htm</include>
+ <include>**/*.html</include>
+ <include>**/*.asax</include>
+ <include>robots.txt</include>
+
+ <!-- graphics -->
+ <include>**/*.jpg</include>
+ <include>**/*.jpeg</include>
+ <include>**/*.png</include>
+ <include>**/*.gif</include>
+ <include>**/*.bmp</include>
+ <include>**/*.ico</include>
+
+ <!-- silverlight? -->
+
+ <!-- flash -->
+ <include>**/*.swf</include>
+ <include>**/*.flv</include>
+ <include>crossdomain.xml</include>
+ </includes>
+ <excludes>
+ <exclude>bin/**/*.*</exclude>
+ <exclude>obj/**/*.*</exclude>
+ <exclude>target/**/*.*</exclude>
+ </excludes>
+ </fileSet>
+ </fileSets>
</component>
\ No newline at end of file
Propchange: incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/main/resources/assemblies/components/aspnet-webapp-contents.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/site/site.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/site/site.xml?rev=1222072&r1=1222071&r2=1222072&view=diff
==============================================================================
--- incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/site/site.xml (original)
+++ incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/site/site.xml Thu Dec 22 06:54:49 2011
@@ -1,31 +1,31 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you 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.
--->
-<project xmlns="http://maven.apache.org/DECORATION/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd">
- <body>
- <menu ref="parent" />
-
- <menu name="Overview">
- <item name="About" href="index.html"/>
- <item name="Goals" href="plugin-info.html"/>
- </menu>
-
- <menu ref="reports" />
- </body>
-</project>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you 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.
+-->
+<project xmlns="http://maven.apache.org/DECORATION/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd">
+ <body>
+ <menu ref="parent" />
+
+ <menu name="Overview">
+ <item name="About" href="index.html"/>
+ <item name="Goals" href="plugin-info.html"/>
+ </menu>
+
+ <menu ref="reports" />
+ </body>
+</project>
Propchange: incubator/npanday/trunk/plugins/aspnet-maven-plugin/src/site/site.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/npanday/trunk/plugins/azure-maven-plugin/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/npanday/trunk/plugins/azure-maven-plugin/src/main/java/npanday.plugin.azure/AbstractCSPackDeployMojo.java
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/azure-maven-plugin/src/main/java/npanday.plugin.azure/AbstractCSPackDeployMojo.java?rev=1222072&r1=1222071&r2=1222072&view=diff
==============================================================================
--- incubator/npanday/trunk/plugins/azure-maven-plugin/src/main/java/npanday.plugin.azure/AbstractCSPackDeployMojo.java (original)
+++ incubator/npanday/trunk/plugins/azure-maven-plugin/src/main/java/npanday.plugin.azure/AbstractCSPackDeployMojo.java Thu Dec 22 06:54:49 2011
@@ -1,155 +1,155 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-package npanday.plugin.azure;
-
-import npanday.PlatformUnsupportedException;
-import npanday.executable.ExecutableRequirement;
-import npanday.executable.ExecutionException;
-import npanday.executable.NetExecutable;
-import npanday.registry.RepositoryRegistry;
-import npanday.vendor.SettingsUtil;
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.project.MavenProject;
-import org.apache.maven.project.MavenProjectHelper;
-
-import java.util.List;
-
-
-/**
- * Abstract Mojo for interaction with CSPack
- *
- * @author <a href="mailto:lcorneliussen@apache.org">Lars Corneliussen</a>
- */
-public abstract class AbstractCSPackDeployMojo
- extends AbstractMojo
-{
- /**
- * @parameter expression="${npanday.settings}" default-value="${user.home}/.m2"
- */
- private String settingsPath;
-
- /**
- * The vendor of the framework, the executable is provided by or compatible with.
- *
- * @parameter expression="${vendor}"
- */
- private String vendor;
-
- /**
- * The version of the framework vendor, the executable is provided by or compatible with.
- *
- * @parameter expression="${vendor}"
- */
- private String vendorVersion;
-
- /**
- * The framework version, the executable is compatible with.
- *
- * @parameter expression = "${frameworkVersion}"
- */
- private String frameworkVersion;
-
- /**
- * The executable identifier used to locate the right configurations from executable-plugins.xml. Can't be changed.
- */
- private String executableIdentifier = "CSPACK";
-
- /**
- * The configured executable version, from executable-plugins.xml, to be used. Should align to a installed
- * Azure SDK Version.
- *
- * @parameter expression="${azuresdk.version}" default-value="1.6"
- */
- private String executableVersion;
-
- /**
- * The configured executable profile, from executable-plugins.xml, to be used.
- *
- * @parameter expression="${cspack.profile}"
- */
- private String executableProfile;
-
- /**
- * @component
- */
- private RepositoryRegistry repositoryRegistry;
-
- /**
- * @component
- */
- private npanday.executable.NetExecutableFactory netExecutableFactory;
-
- /**
- * The maven project.
- *
- * @parameter expression="${project}"
- * @required
- */
- protected MavenProject project;
-
- /**
- * The maven project helper.
- *
- * @component
- */
- protected MavenProjectHelper projectHelper;
-
- public void execute() throws MojoExecutionException
- {
- SettingsUtil.applyCustomSettings( getLog(), repositoryRegistry, settingsPath );
-
- beforeCommandExecution();
-
- try
- {
- // TODO: confusion of 'identifier' and 'profile' / align to new NPANDAY-499
- final NetExecutable executable = netExecutableFactory.getNetExecutableFor(
- new ExecutableRequirement(
- vendor, vendorVersion, frameworkVersion, executableIdentifier, executableVersion
- /*, executableProfile*/
- ), getCommands(), null
- );
- executable.execute();
- }
- catch ( ExecutionException e )
- {
- throw new MojoExecutionException(
- "NPANDAY-122-000: Unable to execute profile '" + executableIdentifier + "' for vendor " + vendor + " v"
- + vendorVersion + " and frameworkVersion = " + frameworkVersion, e
- );
- }
- catch ( PlatformUnsupportedException e )
- {
- throw new MojoExecutionException(
- "NPANDAY-122-001: Unsupported platform configuration. Could not find profile '" + executableIdentifier
- + "' for vendor " + vendor + " v" + vendorVersion + " and frameworkVersion = " +
- frameworkVersion, e
- );
- }
-
- afterCommandExecution();
- }
-
- protected abstract void afterCommandExecution() throws MojoExecutionException;
-
- protected abstract void beforeCommandExecution();
-
- protected abstract List<String> getCommands() throws MojoExecutionException;
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+package npanday.plugin.azure;
+
+import npanday.PlatformUnsupportedException;
+import npanday.executable.ExecutableRequirement;
+import npanday.executable.ExecutionException;
+import npanday.executable.NetExecutable;
+import npanday.registry.RepositoryRegistry;
+import npanday.vendor.SettingsUtil;
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.project.MavenProject;
+import org.apache.maven.project.MavenProjectHelper;
+
+import java.util.List;
+
+
+/**
+ * Abstract Mojo for interaction with CSPack
+ *
+ * @author <a href="mailto:lcorneliussen@apache.org">Lars Corneliussen</a>
+ */
+public abstract class AbstractCSPackDeployMojo
+ extends AbstractMojo
+{
+ /**
+ * @parameter expression="${npanday.settings}" default-value="${user.home}/.m2"
+ */
+ private String settingsPath;
+
+ /**
+ * The vendor of the framework, the executable is provided by or compatible with.
+ *
+ * @parameter expression="${vendor}"
+ */
+ private String vendor;
+
+ /**
+ * The version of the framework vendor, the executable is provided by or compatible with.
+ *
+ * @parameter expression="${vendor}"
+ */
+ private String vendorVersion;
+
+ /**
+ * The framework version, the executable is compatible with.
+ *
+ * @parameter expression = "${frameworkVersion}"
+ */
+ private String frameworkVersion;
+
+ /**
+ * The executable identifier used to locate the right configurations from executable-plugins.xml. Can't be changed.
+ */
+ private String executableIdentifier = "CSPACK";
+
+ /**
+ * The configured executable version, from executable-plugins.xml, to be used. Should align to a installed
+ * Azure SDK Version.
+ *
+ * @parameter expression="${azuresdk.version}" default-value="1.6"
+ */
+ private String executableVersion;
+
+ /**
+ * The configured executable profile, from executable-plugins.xml, to be used.
+ *
+ * @parameter expression="${cspack.profile}"
+ */
+ private String executableProfile;
+
+ /**
+ * @component
+ */
+ private RepositoryRegistry repositoryRegistry;
+
+ /**
+ * @component
+ */
+ private npanday.executable.NetExecutableFactory netExecutableFactory;
+
+ /**
+ * The maven project.
+ *
+ * @parameter expression="${project}"
+ * @required
+ */
+ protected MavenProject project;
+
+ /**
+ * The maven project helper.
+ *
+ * @component
+ */
+ protected MavenProjectHelper projectHelper;
+
+ public void execute() throws MojoExecutionException
+ {
+ SettingsUtil.applyCustomSettings( getLog(), repositoryRegistry, settingsPath );
+
+ beforeCommandExecution();
+
+ try
+ {
+ // TODO: confusion of 'identifier' and 'profile' / align to new NPANDAY-499
+ final NetExecutable executable = netExecutableFactory.getNetExecutableFor(
+ new ExecutableRequirement(
+ vendor, vendorVersion, frameworkVersion, executableIdentifier, executableVersion
+ /*, executableProfile*/
+ ), getCommands(), null
+ );
+ executable.execute();
+ }
+ catch ( ExecutionException e )
+ {
+ throw new MojoExecutionException(
+ "NPANDAY-122-000: Unable to execute profile '" + executableIdentifier + "' for vendor " + vendor + " v"
+ + vendorVersion + " and frameworkVersion = " + frameworkVersion, e
+ );
+ }
+ catch ( PlatformUnsupportedException e )
+ {
+ throw new MojoExecutionException(
+ "NPANDAY-122-001: Unsupported platform configuration. Could not find profile '" + executableIdentifier
+ + "' for vendor " + vendor + " v" + vendorVersion + " and frameworkVersion = " +
+ frameworkVersion, e
+ );
+ }
+
+ afterCommandExecution();
+ }
+
+ protected abstract void afterCommandExecution() throws MojoExecutionException;
+
+ protected abstract void beforeCommandExecution();
+
+ protected abstract List<String> getCommands() throws MojoExecutionException;
+}
Propchange: incubator/npanday/trunk/plugins/azure-maven-plugin/src/main/java/npanday.plugin.azure/AbstractCSPackDeployMojo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/npanday/trunk/plugins/azure-maven-plugin/src/main/java/npanday.plugin.azure/PackageAzureCloudServiceMojo.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/npanday/trunk/plugins/azure-maven-plugin/src/main/resources/META-INF/npanday/executable-plugins.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/azure-maven-plugin/src/main/resources/META-INF/npanday/executable-plugins.xml?rev=1222072&r1=1222071&r2=1222072&view=diff
==============================================================================
--- incubator/npanday/trunk/plugins/azure-maven-plugin/src/main/resources/META-INF/npanday/executable-plugins.xml (original)
+++ incubator/npanday/trunk/plugins/azure-maven-plugin/src/main/resources/META-INF/npanday/executable-plugins.xml Thu Dec 22 06:54:49 2011
@@ -1,46 +1,46 @@
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you 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.
--->
-<executablePlugins xmlns="http://npanday.apache.org/executables/1.5.0">
-
- <executablePlugin>
- <profile>CSPACK</profile>
- <pluginClass>npanday.executable.impl.CommonsExecNetExecutable</pluginClass>
-
- <executable>cspack</executable>
- <executableVersion>1.6</executableVersion>
-
- <vendor>MICROSOFT</vendor>
-
- <frameworkVersions>
- <frameworkVersion>4.0</frameworkVersion>
- <frameworkVersion>3.5</frameworkVersion>
- </frameworkVersions>
-
- <probingPaths>
- <probingPath>${HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\ServiceHosting\v1.6@InstallPath}\bin</probingPath>
- </probingPaths>
-
- <platforms>
- <platform>
- <operatingSystem>Windows</operatingSystem>
- </platform>
- </platforms>
-
- </executablePlugin>
-</executablePlugins>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you 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.
+-->
+<executablePlugins xmlns="http://npanday.apache.org/executables/1.5.0">
+
+ <executablePlugin>
+ <profile>CSPACK</profile>
+ <pluginClass>npanday.executable.impl.CommonsExecNetExecutable</pluginClass>
+
+ <executable>cspack</executable>
+ <executableVersion>1.6</executableVersion>
+
+ <vendor>MICROSOFT</vendor>
+
+ <frameworkVersions>
+ <frameworkVersion>4.0</frameworkVersion>
+ <frameworkVersion>3.5</frameworkVersion>
+ </frameworkVersions>
+
+ <probingPaths>
+ <probingPath>${HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\ServiceHosting\v1.6@InstallPath}\bin</probingPath>
+ </probingPaths>
+
+ <platforms>
+ <platform>
+ <operatingSystem>Windows</operatingSystem>
+ </platform>
+ </platforms>
+
+ </executablePlugin>
+</executablePlugins>
Propchange: incubator/npanday/trunk/plugins/azure-maven-plugin/src/main/resources/META-INF/npanday/executable-plugins.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/npanday/trunk/plugins/azure-maven-plugin/src/site/site.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/azure-maven-plugin/src/site/site.xml?rev=1222072&r1=1222071&r2=1222072&view=diff
==============================================================================
--- incubator/npanday/trunk/plugins/azure-maven-plugin/src/site/site.xml (original)
+++ incubator/npanday/trunk/plugins/azure-maven-plugin/src/site/site.xml Thu Dec 22 06:54:49 2011
@@ -1,31 +1,31 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you 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.
--->
-<project xmlns="http://maven.apache.org/DECORATION/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd">
- <body>
- <menu ref="parent" />
-
- <menu name="Overview">
- <item name="About" href="index.html"/>
- <item name="Goals" href="plugin-info.html"/>
- </menu>
-
- <menu ref="reports" />
- </body>
-</project>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you 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.
+-->
+<project xmlns="http://maven.apache.org/DECORATION/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd">
+ <body>
+ <menu ref="parent" />
+
+ <menu name="Overview">
+ <item name="About" href="index.html"/>
+ <item name="Goals" href="plugin-info.html"/>
+ </menu>
+
+ <menu ref="reports" />
+ </body>
+</project>
Propchange: incubator/npanday/trunk/plugins/azure-maven-plugin/src/site/site.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/npanday/trunk/plugins/maven-fxcop-plugin/src/main/resources/META-INF/npanday/executable-plugins.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/maven-fxcop-plugin/src/main/resources/META-INF/npanday/executable-plugins.xml?rev=1222072&r1=1222071&r2=1222072&view=diff
==============================================================================
--- incubator/npanday/trunk/plugins/maven-fxcop-plugin/src/main/resources/META-INF/npanday/executable-plugins.xml (original)
+++ incubator/npanday/trunk/plugins/maven-fxcop-plugin/src/main/resources/META-INF/npanday/executable-plugins.xml Thu Dec 22 06:54:49 2011
@@ -1,37 +1,37 @@
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you 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.
--->
-<executablePlugins>
- <executablePlugin>
- <identifier>fxcop</identifier>
- <pluginClass>npanday.executable.impl.DefaultNetExecutable</pluginClass>
- <vendor>MICROSOFT</vendor>
- <executable>FxCopCmd</executable>
- <profile>Microsoft:FxCop:FxCopCmd</profile>
- <frameworkVersions>
- <frameworkVersion>4.0</frameworkVersion>
- <frameworkVersion>3.5</frameworkVersion>
- <frameworkVersion>2.0.50727</frameworkVersion>
- </frameworkVersions>
- <platforms>
- <platform>
- <operatingSystem>Windows</operatingSystem>
- </platform>
- </platforms>
- </executablePlugin>
-</executablePlugins>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you 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.
+-->
+<executablePlugins>
+ <executablePlugin>
+ <identifier>fxcop</identifier>
+ <pluginClass>npanday.executable.impl.DefaultNetExecutable</pluginClass>
+ <vendor>MICROSOFT</vendor>
+ <executable>FxCopCmd</executable>
+ <profile>Microsoft:FxCop:FxCopCmd</profile>
+ <frameworkVersions>
+ <frameworkVersion>4.0</frameworkVersion>
+ <frameworkVersion>3.5</frameworkVersion>
+ <frameworkVersion>2.0.50727</frameworkVersion>
+ </frameworkVersions>
+ <platforms>
+ <platform>
+ <operatingSystem>Windows</operatingSystem>
+ </platform>
+ </platforms>
+ </executablePlugin>
+</executablePlugins>
Propchange: incubator/npanday/trunk/plugins/maven-fxcop-plugin/src/main/resources/META-INF/npanday/executable-plugins.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/npanday/trunk/plugins/maven-ilmerge-plugin/pom.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/maven-ilmerge-plugin/pom.xml?rev=1222072&r1=1222071&r2=1222072&view=diff
==============================================================================
--- incubator/npanday/trunk/plugins/maven-ilmerge-plugin/pom.xml (original)
+++ incubator/npanday/trunk/plugins/maven-ilmerge-plugin/pom.xml Thu Dec 22 06:54:49 2011
@@ -1,32 +1,32 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you 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.
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <groupId>org.apache.npanday.plugins</groupId>
- <version>1.5.0-incubating-SNAPSHOT</version>
- <artifactId>maven-dotnet-plugins</artifactId>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>maven-ilmerge-plugin</artifactId>
- <packaging>maven-plugin</packaging>
- <name>NPanday :: ILMerge Maven Plugin</name>
- <description>Maven Plugin for .NET: Merges assemblies</description>
-</project>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you 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.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.apache.npanday.plugins</groupId>
+ <version>1.5.0-incubating-SNAPSHOT</version>
+ <artifactId>maven-dotnet-plugins</artifactId>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>maven-ilmerge-plugin</artifactId>
+ <packaging>maven-plugin</packaging>
+ <name>NPanday :: ILMerge Maven Plugin</name>
+ <description>Maven Plugin for .NET: Merges assemblies</description>
+</project>
Propchange: incubator/npanday/trunk/plugins/maven-ilmerge-plugin/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/npanday/trunk/plugins/maven-ilmerge-plugin/src/main/java/npanday/plugin/ilmerge/ArtifactId.java
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/maven-ilmerge-plugin/src/main/java/npanday/plugin/ilmerge/ArtifactId.java?rev=1222072&r1=1222071&r2=1222072&view=diff
==============================================================================
--- incubator/npanday/trunk/plugins/maven-ilmerge-plugin/src/main/java/npanday/plugin/ilmerge/ArtifactId.java (original)
+++ incubator/npanday/trunk/plugins/maven-ilmerge-plugin/src/main/java/npanday/plugin/ilmerge/ArtifactId.java Thu Dec 22 06:54:49 2011
@@ -1,119 +1,119 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-package npanday.plugin.ilmerge;
-
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.model.Dependency;
-import org.codehaus.plexus.util.SelectorUtils;
-
-class ArtifactId
-{
-
- private final String groupId;
-
- private final String artifactId;
-
- private final String type;
-
- private final String classifier;
-
- public ArtifactId( Dependency dependency )
- {
- this( dependency.getGroupId(), dependency.getArtifactId(), dependency.getType(), dependency.getClassifier() );
- }
-
- public ArtifactId( Artifact artifact )
- {
- this( artifact.getGroupId(), artifact.getArtifactId(), artifact.getType(), artifact.getClassifier() );
- }
-
- public ArtifactId( String groupId, String artifactId, String type, String classifier )
- {
- this.groupId = ( groupId != null ) ? groupId : "";
- this.artifactId = ( artifactId != null ) ? artifactId : "";
- this.type = ( type != null ) ? type : "";
- this.classifier = ( classifier != null ) ? classifier : "";
- }
-
- public ArtifactId( String id )
- {
- String[] tokens = new String[0];
- if ( id != null && id.length() > 0 )
- {
- tokens = id.split( ":", -1 );
- }
- groupId = ( tokens.length > 0 ) ? tokens[0] : "";
- artifactId = ( tokens.length > 1 ) ? tokens[1] : "*";
- type = ( tokens.length > 3 ) ? tokens[2] : "*";
- classifier = ( tokens.length > 3 ) ? tokens[3] : ( ( tokens.length > 2 ) ? tokens[2] : "*" );
- }
-
- public String getGroupId()
- {
- return groupId;
- }
-
- public String getArtifactId()
- {
- return artifactId;
- }
-
- public String getType()
- {
- return type;
- }
-
- public String getClassifier()
- {
- return classifier;
- }
-
- public boolean matches( ArtifactId pattern )
- {
- if ( pattern == null )
- {
- return false;
- }
- if ( !match( getGroupId(), pattern.getGroupId() ) )
- {
- return false;
- }
- if ( !match( getArtifactId(), pattern.getArtifactId() ) )
- {
- return false;
- }
- if ( !match( getType(), pattern.getType() ) )
- {
- return false;
- }
- if ( !match( getClassifier(), pattern.getClassifier() ) )
- {
- return false;
- }
-
- return true;
- }
-
- private boolean match( String str, String pattern )
- {
- return SelectorUtils.match( pattern, str );
- }
-
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+package npanday.plugin.ilmerge;
+
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.model.Dependency;
+import org.codehaus.plexus.util.SelectorUtils;
+
+class ArtifactId
+{
+
+ private final String groupId;
+
+ private final String artifactId;
+
+ private final String type;
+
+ private final String classifier;
+
+ public ArtifactId( Dependency dependency )
+ {
+ this( dependency.getGroupId(), dependency.getArtifactId(), dependency.getType(), dependency.getClassifier() );
+ }
+
+ public ArtifactId( Artifact artifact )
+ {
+ this( artifact.getGroupId(), artifact.getArtifactId(), artifact.getType(), artifact.getClassifier() );
+ }
+
+ public ArtifactId( String groupId, String artifactId, String type, String classifier )
+ {
+ this.groupId = ( groupId != null ) ? groupId : "";
+ this.artifactId = ( artifactId != null ) ? artifactId : "";
+ this.type = ( type != null ) ? type : "";
+ this.classifier = ( classifier != null ) ? classifier : "";
+ }
+
+ public ArtifactId( String id )
+ {
+ String[] tokens = new String[0];
+ if ( id != null && id.length() > 0 )
+ {
+ tokens = id.split( ":", -1 );
+ }
+ groupId = ( tokens.length > 0 ) ? tokens[0] : "";
+ artifactId = ( tokens.length > 1 ) ? tokens[1] : "*";
+ type = ( tokens.length > 3 ) ? tokens[2] : "*";
+ classifier = ( tokens.length > 3 ) ? tokens[3] : ( ( tokens.length > 2 ) ? tokens[2] : "*" );
+ }
+
+ public String getGroupId()
+ {
+ return groupId;
+ }
+
+ public String getArtifactId()
+ {
+ return artifactId;
+ }
+
+ public String getType()
+ {
+ return type;
+ }
+
+ public String getClassifier()
+ {
+ return classifier;
+ }
+
+ public boolean matches( ArtifactId pattern )
+ {
+ if ( pattern == null )
+ {
+ return false;
+ }
+ if ( !match( getGroupId(), pattern.getGroupId() ) )
+ {
+ return false;
+ }
+ if ( !match( getArtifactId(), pattern.getArtifactId() ) )
+ {
+ return false;
+ }
+ if ( !match( getType(), pattern.getType() ) )
+ {
+ return false;
+ }
+ if ( !match( getClassifier(), pattern.getClassifier() ) )
+ {
+ return false;
+ }
+
+ return true;
+ }
+
+ private boolean match( String str, String pattern )
+ {
+ return SelectorUtils.match( pattern, str );
+ }
+
}
\ No newline at end of file
Propchange: incubator/npanday/trunk/plugins/maven-ilmerge-plugin/src/main/java/npanday/plugin/ilmerge/ArtifactId.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/npanday/trunk/plugins/maven-ilmerge-plugin/src/main/java/npanday/plugin/ilmerge/ArtifactSelector.java
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/maven-ilmerge-plugin/src/main/java/npanday/plugin/ilmerge/ArtifactSelector.java?rev=1222072&r1=1222071&r2=1222072&view=diff
==============================================================================
--- incubator/npanday/trunk/plugins/maven-ilmerge-plugin/src/main/java/npanday/plugin/ilmerge/ArtifactSelector.java (original)
+++ incubator/npanday/trunk/plugins/maven-ilmerge-plugin/src/main/java/npanday/plugin/ilmerge/ArtifactSelector.java Thu Dec 22 06:54:49 2011
@@ -1,103 +1,103 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-package npanday.plugin.ilmerge;
-
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Iterator;
-
-import org.apache.maven.artifact.Artifact;
-
-class ArtifactSelector
-{
-
- private Collection includes;
-
- private Collection excludes;
-
- public ArtifactSelector( ArtifactSet artifactSet, String groupPrefix )
- {
- this( ( artifactSet != null ) ? artifactSet.getIncludes() : null,
- ( artifactSet != null ) ? artifactSet.getExcludes() : null, groupPrefix );
- }
-
-
- // TODO: remove?
- public ArtifactSelector( Artifact projectArtifact, ArtifactSet artifactSet, String groupPrefix )
- {
- this( ( artifactSet != null ) ? artifactSet.getIncludes() : null,
- ( artifactSet != null ) ? artifactSet.getExcludes() : null, groupPrefix );
-
- if ( projectArtifact != null && !this.includes.isEmpty() )
- {
- this.includes.add( new ArtifactId( projectArtifact ) );
- }
- }
-
- public ArtifactSelector( Collection includes, Collection excludes, String groupPrefix )
- {
- this.includes = toIds( includes );
- this.excludes = toIds( excludes );
-
- if ( groupPrefix != null && groupPrefix.length() > 0 )
- {
- this.includes.add( new ArtifactId( groupPrefix + "*", "*", "*", "*" ) );
- }
- }
-
- private static Collection toIds( Collection patterns )
- {
- Collection result = new HashSet();
-
- if ( patterns != null )
- {
- for ( Iterator it = patterns.iterator(); it.hasNext(); )
- {
- String pattern = (String) it.next();
- result.add( new ArtifactId( pattern ) );
- }
- }
-
- return result;
- }
-
- public boolean isSelected( Artifact artifact )
- {
- return ( artifact != null ) ? isSelected( new ArtifactId( artifact ) ) : false;
- }
-
- boolean isSelected( ArtifactId id )
- {
- return ( includes.isEmpty() || matches( includes, id ) ) && !matches( excludes, id );
- }
-
- private boolean matches( Collection patterns, ArtifactId id )
- {
- for ( Iterator it = patterns.iterator(); it.hasNext(); )
- {
- ArtifactId pattern = (ArtifactId) it.next();
- if ( id.matches( pattern ) )
- {
- return true;
- }
- }
- return false;
- }
-
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+package npanday.plugin.ilmerge;
+
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.Iterator;
+
+import org.apache.maven.artifact.Artifact;
+
+class ArtifactSelector
+{
+
+ private Collection includes;
+
+ private Collection excludes;
+
+ public ArtifactSelector( ArtifactSet artifactSet, String groupPrefix )
+ {
+ this( ( artifactSet != null ) ? artifactSet.getIncludes() : null,
+ ( artifactSet != null ) ? artifactSet.getExcludes() : null, groupPrefix );
+ }
+
+
+ // TODO: remove?
+ public ArtifactSelector( Artifact projectArtifact, ArtifactSet artifactSet, String groupPrefix )
+ {
+ this( ( artifactSet != null ) ? artifactSet.getIncludes() : null,
+ ( artifactSet != null ) ? artifactSet.getExcludes() : null, groupPrefix );
+
+ if ( projectArtifact != null && !this.includes.isEmpty() )
+ {
+ this.includes.add( new ArtifactId( projectArtifact ) );
+ }
+ }
+
+ public ArtifactSelector( Collection includes, Collection excludes, String groupPrefix )
+ {
+ this.includes = toIds( includes );
+ this.excludes = toIds( excludes );
+
+ if ( groupPrefix != null && groupPrefix.length() > 0 )
+ {
+ this.includes.add( new ArtifactId( groupPrefix + "*", "*", "*", "*" ) );
+ }
+ }
+
+ private static Collection toIds( Collection patterns )
+ {
+ Collection result = new HashSet();
+
+ if ( patterns != null )
+ {
+ for ( Iterator it = patterns.iterator(); it.hasNext(); )
+ {
+ String pattern = (String) it.next();
+ result.add( new ArtifactId( pattern ) );
+ }
+ }
+
+ return result;
+ }
+
+ public boolean isSelected( Artifact artifact )
+ {
+ return ( artifact != null ) ? isSelected( new ArtifactId( artifact ) ) : false;
+ }
+
+ boolean isSelected( ArtifactId id )
+ {
+ return ( includes.isEmpty() || matches( includes, id ) ) && !matches( excludes, id );
+ }
+
+ private boolean matches( Collection patterns, ArtifactId id )
+ {
+ for ( Iterator it = patterns.iterator(); it.hasNext(); )
+ {
+ ArtifactId pattern = (ArtifactId) it.next();
+ if ( id.matches( pattern ) )
+ {
+ return true;
+ }
+ }
+ return false;
+ }
+
}
\ No newline at end of file
Propchange: incubator/npanday/trunk/plugins/maven-ilmerge-plugin/src/main/java/npanday/plugin/ilmerge/ArtifactSelector.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/npanday/trunk/plugins/maven-ilmerge-plugin/src/main/java/npanday/plugin/ilmerge/ArtifactSet.java
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/maven-ilmerge-plugin/src/main/java/npanday/plugin/ilmerge/ArtifactSet.java?rev=1222072&r1=1222071&r2=1222072&view=diff
==============================================================================
--- incubator/npanday/trunk/plugins/maven-ilmerge-plugin/src/main/java/npanday/plugin/ilmerge/ArtifactSet.java (original)
+++ incubator/npanday/trunk/plugins/maven-ilmerge-plugin/src/main/java/npanday/plugin/ilmerge/ArtifactSet.java Thu Dec 22 06:54:49 2011
@@ -1,38 +1,38 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-package npanday.plugin.ilmerge;
-
-import java.util.Set;
-
-public class ArtifactSet
-{
- private Set includes;
-
- private Set excludes;
-
- public Set getIncludes()
- {
- return includes;
- }
-
- public Set getExcludes()
- {
- return excludes;
- }
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+package npanday.plugin.ilmerge;
+
+import java.util.Set;
+
+public class ArtifactSet
+{
+ private Set includes;
+
+ private Set excludes;
+
+ public Set getIncludes()
+ {
+ return includes;
+ }
+
+ public Set getExcludes()
+ {
+ return excludes;
+ }
}
\ No newline at end of file
Propchange: incubator/npanday/trunk/plugins/maven-ilmerge-plugin/src/main/java/npanday/plugin/ilmerge/ArtifactSet.java
------------------------------------------------------------------------------
svn:eol-style = native