Revision: 242
          
http://mindtreeinsight.svn.sourceforge.net/mindtreeinsight/?rev=242&view=rev
Author:   bindul
Date:     2009-03-31 06:38:56 +0000 (Tue, 31 Mar 2009)

Log Message:
-----------
BUG-1936496: Unable to determine the source of this jar and hence cannot 
Changed strategy for copying skeleton directory to a more robust one - we don't 
depend on code source any more, and load from classpath- file list in a 
property file

Modified Paths:
--------------
    releng/maven-jsmooth-plugin/trunk/.classpath
    releng/maven-jsmooth-plugin/trunk/pom.xml
    releng/maven-jsmooth-plugin/trunk/src/changes/changes.xml
    
releng/maven-jsmooth-plugin/trunk/src/main/java/com/mindtree/techworks/insight/releng/mvn/jsmooth/JSmoothCompileMojo.java
    releng/maven-jsmooth-plugin/trunk/src/site/apt/index.apt
    releng/maven-jsmooth-plugin/trunk/src/site/apt/insight-jsmooth-conf.apt
    releng/maven-jsmooth-plugin/trunk/src/site/site.xml

Added Paths:
-----------
    
releng/maven-jsmooth-plugin/trunk/src/main/java/com/mindtree/techworks/insight/releng/mvn/jsmooth/ClasspathInputStreamFacade.java
    releng/maven-jsmooth-plugin/trunk/src/main/resources/pluginconfig.properties

Removed Paths:
-------------
    
releng/maven-jsmooth-plugin/trunk/src/main/java/com/mindtree/techworks/insight/releng/mvn/jsmooth/FileUtils.java

Modified: releng/maven-jsmooth-plugin/trunk/.classpath
===================================================================
--- releng/maven-jsmooth-plugin/trunk/.classpath        2009-03-28 04:49:26 UTC 
(rev 241)
+++ releng/maven-jsmooth-plugin/trunk/.classpath        2009-03-31 06:38:56 UTC 
(rev 242)
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
        <classpathentry including="**/*.java" kind="src" path="src/main/java"/>
+       <classpathentry kind="src" path="src/main/resources"/>
        <classpathentry kind="con" 
path="org.devzuz.q.maven.jdt.core.mavenClasspathContainer"/>
        <classpathentry kind="con" 
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/>
        <classpathentry kind="con" 
path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>

Modified: releng/maven-jsmooth-plugin/trunk/pom.xml
===================================================================
--- releng/maven-jsmooth-plugin/trunk/pom.xml   2009-03-28 04:49:26 UTC (rev 
241)
+++ releng/maven-jsmooth-plugin/trunk/pom.xml   2009-03-31 06:38:56 UTC (rev 
242)
@@ -26,7 +26,7 @@
        <parent>
                <groupId>com.mindtree.techworks.insight.releng</groupId>
                <artifactId>mvn-plugins-parent</artifactId>
-               <version>1.2.0-SNAPSHOT</version>
+               <version>1.2.0</version>
                <relativePath>../mvn-plugins-parent/pom.xml</relativePath>
        </parent>
        <modelVersion>4.0.0</modelVersion>
@@ -51,11 +51,14 @@
                        <artifactId>jsmoothgen</artifactId>
                        <version>0.9.9-7</version>
                </dependency>
+               <dependency>
+            <groupId>org.codehaus.plexus</groupId>
+            <artifactId>plexus-utils</artifactId>
+               </dependency>
        </dependencies>
        <scm>
-               
<connection>scm:svn:http://mindtreeinsight.svn.sourceforge.net/svnroot/mindtreeinsight/releng/maven-jsmooth-plugin/</connection>
-               
<developerConnection>scm:svn:https://mindtreeinsight.svn.sourceforge.net/svnroot/mindtreeinsight/releng/maven-jsmooth-plugin/</developerConnection>
-               
<url>http://mindtreeinsight.svn.sourceforge.net/viewvc/mindtreeinsight/releng/maven-jsmooth-plugin/</url>
-               <tag>trunk</tag>
+               
<connection>scm:svn:http://mindtreeinsight.svn.sourceforge.net/svnroot/mindtreeinsight/releng/maven-jsmooth-plugin/trunk</connection>
+               
<developerConnection>scm:svn:https://mindtreeinsight.svn.sourceforge.net/svnroot/mindtreeinsight/releng/maven-jsmooth-plugin/trunk</developerConnection>
+               
<url>http://mindtreeinsight.svn.sourceforge.net/viewvc/mindtreeinsight/releng/maven-jsmooth-plugin/trunk</url>
        </scm>
 </project>
\ No newline at end of file

Modified: releng/maven-jsmooth-plugin/trunk/src/changes/changes.xml
===================================================================
--- releng/maven-jsmooth-plugin/trunk/src/changes/changes.xml   2009-03-28 
04:49:26 UTC (rev 241)
+++ releng/maven-jsmooth-plugin/trunk/src/changes/changes.xml   2009-03-31 
06:38:56 UTC (rev 242)
@@ -28,6 +28,16 @@
                <title>Maven JSmooth Plug-in</title>
        </properties>
        <body>
+        <release version="0.3.0" date="SNAPSHOT" description="Feature Release">
+            <action type="update" date="2009-03-09" dev="bindul" 
issue="1950880" system="bugs">
+                Made code compatible with JDK 1.4. We will stay here for a 
little while longer.
+            </action>
+            <action type="fix" date="2009-03-30" dev="bindul" issue="1936496" 
system="bugs">
+                Changed strategy for copying skeleton directory to a more 
robust
+                one - we don't depend on code source any more, and load from 
+                classpath- file list in a property file
+            </action>
+        </release>
                <release version="0.2.0" date="2008-04-17" description="Bug 
fixes">
                        <action type="update" date="2008-04-17" dev="bindul" 
issue="1936496" system="bugs">
                                Partial fix for issue reported

Added: 
releng/maven-jsmooth-plugin/trunk/src/main/java/com/mindtree/techworks/insight/releng/mvn/jsmooth/ClasspathInputStreamFacade.java
===================================================================
--- 
releng/maven-jsmooth-plugin/trunk/src/main/java/com/mindtree/techworks/insight/releng/mvn/jsmooth/ClasspathInputStreamFacade.java
                           (rev 0)
+++ 
releng/maven-jsmooth-plugin/trunk/src/main/java/com/mindtree/techworks/insight/releng/mvn/jsmooth/ClasspathInputStreamFacade.java
   2009-03-31 06:38:56 UTC (rev 242)
@@ -0,0 +1,81 @@
+/*
+ * $HeadURL$
+ * 
+ * Copyright (c) 2009 MindTree Consulting Ltd. 
+ * 
+ * This file is part of Insight  Release Engineering Tools.
+ * 
+ * Insight  Release Engineering Tools is free software: you can redistribute 
it 
+ * and/or modify it under the terms of the GNU General Public License as 
+ * published by the Free Software Foundation, either version 3 of the License, 
+ * or (at your option) any later version.
+ * 
+ * Insight  Release Engineering Tools is distributed in the hope that it will 
be 
+ * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General 
+ * Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License along 
with 
+ * Insight  Release Engineering Tools. If not, see 
<http://www.gnu.org/licenses/>.
+ */
+package com.mindtree.techworks.insight.releng.mvn.jsmooth;
+
+import java.io.IOException;
+import java.io.InputStream;
+
+import org.codehaus.plexus.util.io.InputStreamFacade;
+
+/**
+ * An <code>InputStreamFacade</code> implementation to load data from 
classpath.
+ * This implementation can be passed a classpath, and it will use that to 
+ * resolve the <code>resource</code>, else it will use the classpath of this
+ * instance.
+ *
+ * @since 0.3.0
+ * @author Bindul Bhowmik
+ */
+public class ClasspathInputStreamFacade implements InputStreamFacade {
+       
+       /**
+        * The resource location in the classpath
+        */
+       private String resourceLocation;
+       
+       /**
+        * Classloader to use to load the resource, or uses the classpath of 
this
+        * instance.
+        */
+       private ClassLoader classLoader;
+
+       /**
+        * Creates a new <code>ClasspathInputStreamFacade</code> implementation
+        * 
+        * @param resourceLocation The resource to load
+        * @param classLoader The classloader to use to load the resource
+        */
+       public ClasspathInputStreamFacade(String resourceLocation,
+                       ClassLoader classLoader) {
+               this.resourceLocation = resourceLocation;
+               this.classLoader = classLoader;
+       }
+
+       /**
+        * Creates a new <code>ClasspathInputStreamFacade</code> implementation
+        * 
+        * @param resourceLocation The resource to load
+        */
+       public ClasspathInputStreamFacade(String resourceLocation) {
+               this.resourceLocation = resourceLocation;
+       }
+
+       /* (non-Javadoc)
+        * @see org.codehaus.plexus.util.io.InputStreamFacade#getInputStream()
+        */
+       public InputStream getInputStream() throws IOException {
+               ClassLoader cl = this.classLoader;
+               if (cl == null) {
+                       cl = getClass().getClassLoader();
+               }
+               return cl.getResourceAsStream(resourceLocation);
+       }
+}


Property changes on: 
releng/maven-jsmooth-plugin/trunk/src/main/java/com/mindtree/techworks/insight/releng/mvn/jsmooth/ClasspathInputStreamFacade.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain
Added: svn:keywords
   + Date Author Id Revision HeadURL
Added: svn:eol-style
   + native

Deleted: 
releng/maven-jsmooth-plugin/trunk/src/main/java/com/mindtree/techworks/insight/releng/mvn/jsmooth/FileUtils.java
===================================================================
--- 
releng/maven-jsmooth-plugin/trunk/src/main/java/com/mindtree/techworks/insight/releng/mvn/jsmooth/FileUtils.java
    2009-03-28 04:49:26 UTC (rev 241)
+++ 
releng/maven-jsmooth-plugin/trunk/src/main/java/com/mindtree/techworks/insight/releng/mvn/jsmooth/FileUtils.java
    2009-03-31 06:38:56 UTC (rev 242)
@@ -1,178 +0,0 @@
-/*
- * $HeadURL$
- * 
- * Copyright (c) 2007 MindTree Consulting Ltd. 
- * 
- * This file is part of Insight  Release Engineering Tools.
- * 
- * Insight  Release Engineering Tools is free software: you can redistribute 
it 
- * and/or modify it under the terms of the GNU General Public License as 
- * published by the Free Software Foundation, either version 3 of the License, 
- * or (at your option) any later version.
- * 
- * Insight  Release Engineering Tools is distributed in the hope that it will 
be 
- * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General 
- * Public License for more details.
- * 
- * You should have received a copy of the GNU General Public License along 
with 
- * Insight  Release Engineering Tools. If not, see 
<http://www.gnu.org/licenses/>.
- */
-package com.mindtree.techworks.insight.releng.mvn.jsmooth;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.util.Enumeration;
-import java.util.zip.ZipEntry;
-import java.util.zip.ZipFile;
-
-import org.apache.maven.plugin.logging.Log;
-
-/**
- * Utility methods for handling files
- */
-public class FileUtils {
-
-       /**
-        * Copies an entire directory from one location to the other
-        * 
-        * @param sourceLocation
-        *            The source directory location
-        * @param targetLocation
-        *            Target location
-        * @throws IOException
-        *             If there is an error copying
-        */
-       public static void copyDirectory(File sourceLocation, File 
targetLocation)
-                       throws IOException {
-
-               if (sourceLocation.isDirectory()) {
-                       if (!targetLocation.exists()) {
-                               targetLocation.mkdir();
-                       }
-
-                       String[] children = sourceLocation.list();
-                       for (int i = 0; i < children.length; i++) {
-                               copyDirectory(new File(sourceLocation, 
children[i]), new File(
-                                               targetLocation, children[i]));
-                       }
-               } else {
-
-                       InputStream in = new FileInputStream(sourceLocation);
-                       OutputStream out = new FileOutputStream(targetLocation);
-
-                       // Copy the bits from instream to outstream
-                       copyStream(in, out);
-               }
-       }
-
-       /**
-        * Extracts portion of a zip file
-        * 
-        * @param sourceFile
-        *            The source zip file
-        * @param targetDirectory
-        *            The target directory to which to extract
-        * @param zipEntryFilter
-        *            Filter portions of the zip file
-        * @param excludeFiterInDest
-        *            If the text in the filter should be removed from the 
resulting
-        *            file path
-        * @param log
-        *            The log to log data to
-        * @throws IOException
-        *             If there is an exception in extraction
-        */
-       public static void extractZipDirectories(ZipFile sourceFile,
-                       File targetDirectory, String zipEntryFilter,
-                       boolean excludeFiterInDest, Log log) throws IOException 
{
-               Enumeration entries = sourceFile.entries();
-               String entryFilter = (null == zipEntryFilter) ? "" : 
zipEntryFilter;
-               int entryFilterLen = entryFilter.length();
-               if (!targetDirectory.exists()) {
-                       targetDirectory.mkdir();
-               }
-               String targetPath = targetDirectory.getAbsolutePath();
-               while (entries.hasMoreElements()) {
-                       ZipEntry entry = (ZipEntry) entries.nextElement();
-                       String entryName = entry.getName();
-                       if (entryName.startsWith(entryFilter)) {
-                               log.debug("Copying file: " + entryName);
-
-                               // Destination Path
-                               StringBuffer destinPath = new 
StringBuffer(targetPath);
-                               if (excludeFiterInDest) {
-                                       
destinPath.append(entryName.substring(entryFilterLen));
-                               } else {
-                                       destinPath.append(entryName);
-                               }
-                               log.debug("Destination Path: " + destinPath);
-
-                               File destinationFile = new 
File(destinPath.toString());
-
-                               // Directory handling
-                               if (entry.isDirectory()) {
-                                       if (!destinationFile.exists()) {
-                                               if (!destinationFile.mkdirs()) {
-                                                       throw new IOException(
-                                                                       "Unable 
to create destination directory: "
-                                                                               
        + destinationFile.getAbsolutePath());
-                                               }
-                                       }
-                               } else {
-                                       // File copy
-                                       File parentFile = 
destinationFile.getParentFile();
-                                       if (!parentFile.exists()) {
-                                               if (!parentFile.mkdirs()) {
-                                                       throw new IOException(
-                                                                       "Unable 
to create destination directory: "
-                                                                               
        + parentFile.getAbsolutePath());
-                                               }
-                                       }
-
-                                       InputStream in = 
sourceFile.getInputStream(entry);
-                                       OutputStream out = new 
FileOutputStream(destinationFile);
-                                       copyStream(in, out);
-
-                               }
-                       }
-               }
-       }
-
-       /**
-        * Copies an input stream to the output stream
-        * 
-        * @param in
-        *            The source stream
-        * @param out
-        *            The destination stream
-        * @throws IOException
-        *             If there is an error reading or writing
-        */
-       public static void copyStream(InputStream in, OutputStream out)
-                       throws IOException {
-               try {
-                       // Copy the bits from instream to outstream
-                       byte[] buf = new byte[1024];
-                       int len;
-                       while ((len = in.read(buf)) > 0) {
-                               out.write(buf, 0, len);
-                       }
-               } finally {
-                       try {
-                               in.close();
-                       } catch (IOException e) {
-                               // Ignore
-                       }
-                       try {
-                               out.close();
-                       } catch (IOException e) {
-                               // Ignore
-                       }
-               }
-       }
-}

Modified: 
releng/maven-jsmooth-plugin/trunk/src/main/java/com/mindtree/techworks/insight/releng/mvn/jsmooth/JSmoothCompileMojo.java
===================================================================
--- 
releng/maven-jsmooth-plugin/trunk/src/main/java/com/mindtree/techworks/insight/releng/mvn/jsmooth/JSmoothCompileMojo.java
   2009-03-28 04:49:26 UTC (rev 241)
+++ 
releng/maven-jsmooth-plugin/trunk/src/main/java/com/mindtree/techworks/insight/releng/mvn/jsmooth/JSmoothCompileMojo.java
   2009-03-31 06:38:56 UTC (rev 242)
@@ -22,15 +22,13 @@
 
 import java.io.File;
 import java.io.IOException;
-import java.net.URI;
-import java.net.URISyntaxException;
-import java.net.URL;
-import java.security.CodeSource;
+import java.io.InputStream;
 import java.util.ArrayList;
 import java.util.Iterator;
 import java.util.List;
+import java.util.Properties;
 import java.util.Set;
-import java.util.zip.ZipFile;
+import java.util.StringTokenizer;
 
 import net.charabia.jsmoothgen.application.ExeCompiler;
 import net.charabia.jsmoothgen.application.JSmoothModelBean;
@@ -44,6 +42,8 @@
 import org.apache.maven.plugin.MojoFailureException;
 import org.apache.maven.project.MavenProject;
 import org.apache.maven.project.MavenProjectHelper;
+import org.codehaus.plexus.util.FileUtils;
+import org.codehaus.plexus.util.io.InputStreamFacade;
 
 /**
  * This is the entry class for the maven plugin to compile a Jsmooth file.
@@ -68,6 +68,21 @@
  * @description Compiles the Jsmooth executable for the project
  */
 public class JSmoothCompileMojo extends AbstractMojo {
+       
+       /**
+        * The plugin configuratino file
+        */
+       private static final String CONFIG_FILE = "pluginconfig.properties";
+       
+       /**
+        * List of skeleton files that will be extracted from the classpath and 
set
+        */
+       private List skeletonFiles = null;
+       
+       /**
+        * The parent of the directory to which the skeletons are copied
+        */
+       private String parentSkeletonDirectory = null;
 
        /**
         * Flag to allow one or more executions of the build to skip the compile
@@ -153,10 +168,12 @@
         */
        public void execute() throws MojoExecutionException, 
MojoFailureException {
                if (skipJSmooth) {
-                       getLog()
-                                       .info(
-                                                       "Skipping JSmooth 
Compile, as skipJSmooth flag is set to false");
+                       getLog().info("Skipping JSmooth Compile, as skipJSmooth 
flag " +
+                                       "is set to false");
                }
+               
+               // Load the properties
+               loadConfig();
 
                // Resolve the Jsmooth file path
                File jSmthFile = resolveFile(jsmoothFile);
@@ -190,6 +207,61 @@
                projectHelper.attachArtifact(project, "exe", compiledFile);
        }
 
+       /**
+        * Loads the configuration for this plug-in from the property file.
+        * 
+        * @throws MojoExecutionException If there is an error loading the 
properties
+        */
+       private void loadConfig() throws MojoExecutionException {
+               
+               // Load the property file
+               InputStream propertyFile = 
getClass().getResourceAsStream(CONFIG_FILE);
+               Properties config = new Properties();
+               try {
+                       config.load(propertyFile);
+               } catch (IOException e) {
+                       getLog().error(
+                                       "Error loading configuration file " + 
CONFIG_FILE
+                                                       + " from classpath", e);
+                       throw new MojoExecutionException("Error loading 
configuration file " 
+                                       + CONFIG_FILE + " from classpath", e);
+               } finally {
+                       try {
+                               propertyFile.close();
+                       } catch (IOException e) {
+                               // Ignore
+                       }
+               }
+               
+               // Load the parent skelton directory property
+               parentSkeletonDirectory = 
config.getProperty("jsmooth.skel.parent",
+                               "skeletons");
+               
+               // Load the list of property files
+               String skeletonFilesProp = 
config.getProperty("jsmooth.skel.files");
+               StringTokenizer tokenizer = new 
StringTokenizer(skeletonFilesProp, ",");
+               List skelFiles = new ArrayList();
+               while (tokenizer.hasMoreTokens()) {
+                       skelFiles.add(tokenizer.nextToken().trim());
+               }
+               
+               if (getLog().isDebugEnabled()) {
+                       getLog().debug("Skeleton files: ");
+                       for (int i = 0; i < skelFiles.size(); i++) {
+                               getLog().debug("\t" + skelFiles.get(i));
+                       }
+               }
+               skeletonFiles = skelFiles;
+       }
+
+       /**
+        * Calls <code>JSmoothGen</code> to compile the jar into an executable.
+        * 
+        * @param skeletonRoot The root directory where skeletons are present
+        * @param model The model bean
+        * @return The location of the compile file
+        * @throws MojoExecutionException If there is an exception compiling
+        */
        private File compileJSmooth(File skeletonRoot, JSmoothModelBean model) 
throws MojoExecutionException {
                try {
                        SkeletonList skelList = new SkeletonList(skeletonRoot);
@@ -258,53 +330,27 @@
         */
        private File writeSkeletons(File jsmoothTmpDir)
                        throws MojoFailureException, MojoExecutionException {
-               // Get the code source and get to the jar file
-               CodeSource cs = 
getClass().getProtectionDomain().getCodeSource();
-               if (null == cs) {
-                       // Can't proceed
-                       throw new MojoFailureException(
-                                       "Unable to determine the source of this 
jar and hence cannot extract skeletons");
-               }
-               URL baseUrl = cs.getLocation();
-               getLog().debug("Determined code source location: " + 
baseUrl.toExternalForm());
-               File destinationDir = new File(jsmoothTmpDir + File.separator
-                               + "skeletons");
-               try {
-                       // Determine the File object. This has been modified 
from the 
-                       // previous implementation to handle illegal characters 
in URLs.
-                       File basePath = null;
+
+               ClassLoader cl = getClass().getClassLoader();
+               int skeletonFilesCount = (null == skeletonFiles) ? 0 : 
skeletonFiles.size();
+               for (int i = 0; i < skeletonFilesCount; i ++) {
+                       String filePath = (String) skeletonFiles.get(i);
+                       InputStreamFacade isFacade = new 
ClasspathInputStreamFacade(filePath, cl);
+                       File destinationFile = new File(jsmoothTmpDir, 
filePath);
+                       if (getLog().isDebugEnabled()) {
+                               getLog().debug(
+                                               "Coping skeleton file [" + 
filePath
+                                                               + "] to 
destination file ["
+                                                               + 
destinationFile.getAbsolutePath() + "]");
+                       }
                        try {
-                               
-                               basePath = new File(new 
URI(baseUrl.toString()));
-                       } catch (URISyntaxException e) {
-                               getLog().debug("Failed the URI method.. faling 
back to path");
-                               basePath = new File(baseUrl.getPath());
+                               FileUtils.copyStreamToFile(isFacade, 
destinationFile);
+                       } catch (IOException e) {
+                               throw new MojoFailureException("Unable to copy 
source skeleton file " + filePath + " to destination.", e);
                        }
-                       getLog().debug(
-                                       "Attempting extraction from" + 
basePath.getAbsolutePath());
-
-                       // Check extraction from zip
-                       if (basePath.getAbsolutePath().endsWith(".jar")
-                                       || 
basePath.getAbsolutePath().endsWith(".zip")) {
-                               ZipFile sourceFile = new ZipFile(basePath);
-                               FileUtils.extractZipDirectories(sourceFile, 
destinationDir,
-                                               "skeletons", true, getLog());
-                       } else {
-                               File skeletonDir = new 
File(basePath.getAbsolutePath()
-                                               + File.separator + "skeletons");
-                               if (skeletonDir.exists()) {
-                                       FileUtils.copyDirectory(skeletonDir, 
destinationDir);
-                               } else {
-                                       throw new MojoFailureException(
-                                                       "Unable to determine 
the source of this jar and hence cannot extract skeletons");
-                               }
-                       }
-               } catch (IOException e) {
-                       // Error copying file
-                       throw new MojoExecutionException(this,
-                                       "Error copying skeleton files", 
e.getMessage());
                }
-               return destinationDir;
+               
+               return new File(jsmoothTmpDir, parentSkeletonDirectory);
        }
 
        /**

Added: 
releng/maven-jsmooth-plugin/trunk/src/main/resources/pluginconfig.properties
===================================================================
--- 
releng/maven-jsmooth-plugin/trunk/src/main/resources/pluginconfig.properties    
                            (rev 0)
+++ 
releng/maven-jsmooth-plugin/trunk/src/main/resources/pluginconfig.properties    
    2009-03-31 06:38:56 UTC (rev 242)
@@ -0,0 +1,33 @@
+# Plugin Configuration for Maven JSmooth Plugin
+#
+# Copyright (c) 2009 MindTree Consulting Ltd. 
+# 
+# This file is part of Insight Release Engineering Tools.
+# 
+# Insight Release Engineering Tools is free software: you can redistribute it 
+# and/or modify it under the terms of the GNU General Public License as 
+# published by the Free Software Foundation, either version 3 of the License, 
+# or (at your option) any later version.
+# 
+# Insight Release Engineering Tools are distributed in the hope that it will 
be 
+# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General 
+# Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License along with 
+# Insight Release Engineering Tools. If not, see 
<http://www.gnu.org/licenses/>.
+# 
+# $Id$
+
+#-# List of all files that make up the skeleton
+jsmooth.skel.files=skeletons/autodownload-wrapper/autodownload.exe, \
+                       skeletons/autodownload-wrapper/autodownload.skel, \
+                       skeletons/autodownload-wrapper/customdownload.skel, \
+                       skeletons/console-wrapper/consolewrapper.exe, \
+                       skeletons/console-wrapper/description.skel, \
+                       skeletons/windowed-wrapper/description.skel, \
+                       skeletons/windowed-wrapper/jwrap.exe, \
+                       skeletons/winservice-wrapper/description.skel, \
+                       skeletons/winservice-wrapper/winservice.exe
+#-# The base directory of the skeleton files
+jsmooth.skel.parent=skeletons
\ No newline at end of file


Property changes on: 
releng/maven-jsmooth-plugin/trunk/src/main/resources/pluginconfig.properties
___________________________________________________________________
Added: svn:mime-type
   + text/plain
Added: svn:keywords
   + Date Author Id Revision HeadURL
Added: svn:eol-style
   + native

Modified: releng/maven-jsmooth-plugin/trunk/src/site/apt/index.apt
===================================================================
--- releng/maven-jsmooth-plugin/trunk/src/site/apt/index.apt    2009-03-28 
04:49:26 UTC (rev 241)
+++ releng/maven-jsmooth-plugin/trunk/src/site/apt/index.apt    2009-03-31 
06:38:56 UTC (rev 242)
@@ -17,14 +17,14 @@
        
 * Goal's Overview
 
-       The plug-in has four goals:
+       The plug-in has one goal:
        
        * {{{jsmoothcompile-mojo.html}jsmooth:jsmoothcompile}}: Generates the 
        executable for the project
        
 * Stability
 
-       The current version of the plug-in is 0.1.0. Hence the features, 
configuration
+       The current version of the plug-in is 0.3.0. Hence the features, 
configuration
        and API of the plug-in are not frozen. Anything in the plug-in is 
subject
        to change at any time until version 1.0 is released.
        

Modified: 
releng/maven-jsmooth-plugin/trunk/src/site/apt/insight-jsmooth-conf.apt
===================================================================
--- releng/maven-jsmooth-plugin/trunk/src/site/apt/insight-jsmooth-conf.apt     
2009-03-28 04:49:26 UTC (rev 241)
+++ releng/maven-jsmooth-plugin/trunk/src/site/apt/insight-jsmooth-conf.apt     
2009-03-31 06:38:56 UTC (rev 242)
@@ -25,7 +25,7 @@
                        <plugin>
                 <groupId>com.mindtree.techworks.insight.releng</groupId>
                 <artifactId>maven-jsmooth-plugin</artifactId>
-                <version>0.1.0</version>
+                <version>0.3.0-SNAPSHOT</version>
                 <executions>
                     <execution>
                         <phase>package</phase>

Modified: releng/maven-jsmooth-plugin/trunk/src/site/site.xml
===================================================================
--- releng/maven-jsmooth-plugin/trunk/src/site/site.xml 2009-03-28 04:49:26 UTC 
(rev 241)
+++ releng/maven-jsmooth-plugin/trunk/src/site/site.xml 2009-03-31 06:38:56 UTC 
(rev 242)
@@ -1,21 +1,29 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-       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://mindtreeinsight.sourceforge.net/xsds/decoration-1.0.0.xsd"; 
+<!-- 
+    |
+    | Copyright (c) 2007-2009 MindTree Ltd.
+    | 
+    | This file is part of Insight Release Engineering Tools.
+    | 
+    | Insight Release Engineering Tools is free software: you can redistribute 
+    | it and/or modify it under the terms of the GNU General Public License as 
+    | published by the Free Software Foundation, either version 3 of the 
License, 
+    | or (at your option) any later version.
+    | 
+    | Insight Release Engineering Tools is distributed in the hope that it 
will 
+    | be useful, but WITHOUT ANY WARRANTY; without even the implied warranty 
of 
+    | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
General 
+    | Public License for more details.
+    | 
+    | You should have received a copy of the GNU General Public License along 
with 
+    | Insight Release Engineering Tools. If not, see 
+    | <http://www.gnu.org/licenses/>.
+    |
 -->
-<project name="JSmooth Plugin">
-       <skin>
-               <groupId>com.mindtree.techworks.insight.releng</groupId>
-               <artifactId>maven-site-skin</artifactId>
-       </skin>
-       <poweredBy>
-               <logo name="SourceForge.net Logo"
-                       href="https://sourceforge.net/projects/mindtreeinsight/";
-                       
img="http://sflogo.sourceforge.net/sflogo.php?group_id=212019&amp;type=1"; />
-               <logo name="Build with Maven 2" href="http://maven.apache.org";
-                       
img="http://maven.apache.org/images/logos/maven-feather.png"; />
-       </poweredBy>
+<project name="JSmooth Plugin" 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";>
+    <version position="left"/>
        <bannerLeft>
                <name>JSmooth &lt;br /&gt;Plugin</name>
                
<href>http://mindtreeinsight.sourceforge.net/releng/maven-jsmooth-plugin/index.html</href>
@@ -25,11 +33,19 @@
                <href>http://mindtreeinsight.sourceforge.net/</href>
        </bannerRight>
        <body>
+        <head>
+            <privacy 
href="http://mindtreeinsight.sourceforge.net/privacy.html"/>
+            <meta name="keywords" 
value="maven,plugin,plug-in,jsmooth,jsmoothgen,mindtree,insight,maven2,mindtree 
ltd,packaging,java,executable,windows,win32,java wrapper"/>
+        </head>
                <links>
                        <item name="MindTree" href="http://www.mindtree.com/"; />
-                       <item name="Insight" 
href="http://mindtreeinsight.sourceforge.net/"/>
                        <item name="Insight Release Engineering" 
href="http://mindtreeinsight.sourceforge.net/releng/index.html"/>
                </links>
+               <breadcrumbs>
+            <item name="Insight" href="../../"/>
+            <item name="Release Engineering" href="../"/>
+            <item name="Maven JSmooth Plugin"/>
+        </breadcrumbs>
                <menu name="Maven JSmooth Plugin">
                        <item name="Introduction" href="index.html"/>
                        <item name="Goals" href="plugin-info.html" />
@@ -39,5 +55,6 @@
                        <item name="Insight Jsmooth Configuration" 
href="insight-jsmooth-conf.html"/>
                </menu>
                <menu ref="reports"/>
+               <menu ref="parent"/>
        </body>
 </project>


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
_______________________________________________
MindTreeInsight-commits mailing list
MindTreeInsight-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mindtreeinsight-commits

Reply via email to