maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From epunza...@apache.org
Subject svn commit: r383118 - /maven/plugins/trunk/maven-idea-plugin/src/main/java/org/apache/maven/plugin/idea/Library.java
Date Sat, 04 Mar 2006 14:38:10 GMT
Author: epunzalan
Date: Sat Mar  4 06:38:09 2006
New Revision: 383118

URL: http://svn.apache.org/viewcvs?rev=383118&view=rev
Log:
Missed this file from previous commit

Added:
    maven/plugins/trunk/maven-idea-plugin/src/main/java/org/apache/maven/plugin/idea/Library.java

Added: maven/plugins/trunk/maven-idea-plugin/src/main/java/org/apache/maven/plugin/idea/Library.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-idea-plugin/src/main/java/org/apache/maven/plugin/idea/Library.java?rev=383118&view=auto
==============================================================================
--- maven/plugins/trunk/maven-idea-plugin/src/main/java/org/apache/maven/plugin/idea/Library.java
(added)
+++ maven/plugins/trunk/maven-idea-plugin/src/main/java/org/apache/maven/plugin/idea/Library.java
Sat Mar  4 06:38:09 2006
@@ -0,0 +1,80 @@
+package org.apache.maven.plugin.idea;
+
+/**
+ * @author Patrick Lightbody (plightbo at gmail dot com)
+ */
+public class Library
+{
+    private String name;
+
+    private String sources;
+
+    private String classes;
+
+    private boolean exclude;
+
+    public String getName()
+    {
+        return name;
+    }
+
+    public void setName( String name )
+    {
+        this.name = name;
+    }
+
+    public String getSources()
+    {
+        return sources;
+    }
+
+    public void setSources( String sources )
+    {
+        this.sources = sources;
+    }
+
+    public String[] getSplitSources()
+    {
+        if ( sources == null )
+        {
+            return new String[0];
+        }
+
+        return sources.split( "[,\\s]+" );
+    }
+
+    public String[] getSplitClasses()
+    {
+        if ( classes == null )
+        {
+            return new String[0];
+        }
+
+        return classes.split( "[,\\s]+" );
+    }
+
+    public boolean isExclude()
+    {
+        return exclude;
+    }
+
+    public void setExclude( boolean exclude )
+    {
+        this.exclude = exclude;
+    }
+
+    public String getClasses()
+    {
+        return classes;
+    }
+
+    public void setClasses( String classes )
+    {
+        this.classes = classes;
+    }
+
+    public String toString()
+    {
+        return name + " : " + getSplitSources() + "; " + getSplitClasses() + "; " + exclude;
+    }
+}



Mime
View raw message