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 2012/07/30 20:56:18 UTC
svn commit: r1367222 -
/maven/plugins/trunk/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/ShadeRequest.java
Author: olamy
Date: Mon Jul 30 18:56:18 2012
New Revision: 1367222
URL: http://svn.apache.org/viewvc?rev=1367222&view=rev
Log:
missed to add new class
Added:
maven/plugins/trunk/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/ShadeRequest.java (with props)
Added: maven/plugins/trunk/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/ShadeRequest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/ShadeRequest.java?rev=1367222&view=auto
==============================================================================
--- maven/plugins/trunk/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/ShadeRequest.java (added)
+++ maven/plugins/trunk/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/ShadeRequest.java Mon Jul 30 18:56:18 2012
@@ -0,0 +1,140 @@
+package org.apache.maven.plugins.shade;
+
+/*
+ * 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.
+ */
+
+import org.apache.maven.plugins.shade.filter.Filter;
+import org.apache.maven.plugins.shade.relocation.Relocator;
+import org.apache.maven.plugins.shade.resource.ResourceTransformer;
+
+import java.io.File;
+import java.util.List;
+import java.util.Set;
+
+/**
+ * Parameter object used to pass multitude of args to Shader.shade()
+ * @since 2.0
+ */
+public class ShadeRequest
+{
+
+ private Set<File> jars;
+
+ private File uberJar;
+
+ private List<Filter> filters;
+
+ private List<Relocator> relocators;
+
+ private List<ResourceTransformer> resourceTransformers;
+
+ private boolean shadeSourcesContent;
+
+ public Set<File> getJars()
+ {
+ return jars;
+ }
+
+ /**
+ * Which jars to shade.
+ *
+ * @param jars
+ */
+ public void setJars( Set<File> jars )
+ {
+ this.jars = jars;
+ }
+
+ public File getUberJar()
+ {
+ return uberJar;
+ }
+
+ /**
+ * Output jar.
+ *
+ * @param uberJar
+ */
+ public void setUberJar( File uberJar )
+ {
+ this.uberJar = uberJar;
+ }
+
+ public List<Filter> getFilters()
+ {
+ return filters;
+ }
+
+ /**
+ * The filters.
+ *
+ * @param filters
+ */
+ public void setFilters( List<Filter> filters )
+ {
+ this.filters = filters;
+ }
+
+ public List<Relocator> getRelocators()
+ {
+ return relocators;
+ }
+
+ /**
+ * The relocators.
+ *
+ * @param relocators
+ */
+ public void setRelocators( List<Relocator> relocators )
+ {
+ this.relocators = relocators;
+ }
+
+ public List<ResourceTransformer> getResourceTransformers()
+ {
+ return resourceTransformers;
+ }
+
+ /**
+ * The transformers.
+ *
+ * @param resourceTransformers
+ */
+ public void setResourceTransformers( List<ResourceTransformer> resourceTransformers )
+ {
+ this.resourceTransformers = resourceTransformers;
+ }
+
+ public boolean isShadeSourcesContent()
+ {
+ return shadeSourcesContent;
+ }
+
+ /**
+ * When true, it will attempt to shade the contents of the java source files when creating the sources jar.
+ * When false, it will just relocate the java source files to the shaded paths, but will not modify the
+ * actual contents of the java source files.
+ *
+ * @param shadeSourcesContent
+ */
+ public void setShadeSourcesContent( boolean shadeSourcesContent )
+ {
+ this.shadeSourcesContent = shadeSourcesContent;
+ }
+}
Propchange: maven/plugins/trunk/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/ShadeRequest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/ShadeRequest.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision