You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2013/02/12 22:56:38 UTC

svn commit: r1445411 - /maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/fromConfiguration/ProcessArtifactItemsRequest.java

Author: olamy
Date: Tue Feb 12 21:56:38 2013
New Revision: 1445411

URL: http://svn.apache.org/r1445411
Log:
missed to add the new class

Added:
    maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/fromConfiguration/ProcessArtifactItemsRequest.java   (with props)

Added: maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/fromConfiguration/ProcessArtifactItemsRequest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/fromConfiguration/ProcessArtifactItemsRequest.java?rev=1445411&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/fromConfiguration/ProcessArtifactItemsRequest.java (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/fromConfiguration/ProcessArtifactItemsRequest.java Tue Feb 12 21:56:38 2013
@@ -0,0 +1,101 @@
+package org.apache.maven.plugin.dependency.fromConfiguration;
+/*
+ * 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.
+ */
+
+/**
+ * @author Olivier Lamy
+ * @since 2.7
+ */
+public class ProcessArtifactItemsRequest
+{
+    /**
+     * remove the version from the filename.
+     */
+    private boolean removeVersion;
+
+    /**
+     * prepend the groupId to the filename.
+     */
+    private boolean prependGroupId;
+
+    /**
+     * use the baseVersion of the artifact instead of version for the filename.
+     */
+    private boolean useBaseVersion;
+
+    public ProcessArtifactItemsRequest()
+    {
+        // no op
+    }
+
+    public ProcessArtifactItemsRequest( boolean removeVersion, boolean prependGroupId, boolean useBaseVersion )
+    {
+        this.removeVersion = removeVersion;
+        this.prependGroupId = prependGroupId;
+        this.useBaseVersion = useBaseVersion;
+    }
+
+    public boolean isRemoveVersion()
+    {
+        return removeVersion;
+    }
+
+    public void setRemoveVersion( boolean removeVersion )
+    {
+        this.removeVersion = removeVersion;
+    }
+
+    public ProcessArtifactItemsRequest removeVersion( boolean removeVersion )
+    {
+        this.removeVersion = removeVersion;
+        return this;
+    }
+
+    public boolean isPrependGroupId()
+    {
+        return prependGroupId;
+    }
+
+    public void setPrependGroupId( boolean prependGroupId )
+    {
+        this.prependGroupId = prependGroupId;
+    }
+
+    public ProcessArtifactItemsRequest prependGroupId( boolean prependGroupId )
+    {
+        this.prependGroupId = prependGroupId;
+        return this;
+    }
+
+    public boolean isUseBaseVersion()
+    {
+        return useBaseVersion;
+    }
+
+    public void setUseBaseVersion( boolean useBaseVersion )
+    {
+        this.useBaseVersion = useBaseVersion;
+    }
+
+    public ProcessArtifactItemsRequest useBaseVersion( boolean useBaseVersion )
+    {
+        this.useBaseVersion = useBaseVersion;
+        return this;
+    }
+}

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/fromConfiguration/ProcessArtifactItemsRequest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/fromConfiguration/ProcessArtifactItemsRequest.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision