Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8"?>
<plugin>
  <description>With this Mojo you can back up a set of files from a workspace (eclipse workspace for instance). The Files will be stored in a special file that is save and that can be commited to the svn-repo. Every User has his own space in the file. Conflicts of .setting-files will never happen again.</description>
  <groupId>com.googlecode.mad-mvntools</groupId>
  <artifactId>settingsutil</artifactId>
  <version>0.1.2</version>
  <goalPrefix>settingsutil</goalPrefix>
  <isolatedRealm>false</isolatedRealm>
  <inheritedByDefault>true</inheritedByDefault>
  <mojos>
    <mojo>
      <goal>copy</goal>
      <description>- Apache License 2.0 - &lt;br&gt;
Mojo to back up the Files in a x.xml-file: rename a user &lt;br&gt;
&lt;br&gt;
LastChangedBy: $Author: marthaler.worb@gmail.com $&lt;br&gt;
LastChangedDate: $Date: 2010-12-29 14:14:06 +0100 (Wed, 29 Dec 2010) $</description>
      <requiresDirectInvocation>false</requiresDirectInvocation>
      <requiresProject>true</requiresProject>
      <requiresReports>false</requiresReports>
      <aggregator>false</aggregator>
      <requiresOnline>false</requiresOnline>
      <inheritedByDefault>true</inheritedByDefault>
      <implementation>com.googlecode.mad.mvntools.settingsutil.filestore.CopyFilestore</implementation>
      <language>java</language>
      <instantiationStrategy>per-lookup</instantiationStrategy>
      <executionStrategy>once-per-session</executionStrategy>
      <parameters>
        <parameter>
          <name>backupFile</name>
          <alias>backupfile</alias>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The name of the backup-file</description>
        </parameter>
        <parameter>
          <name>buildDir</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The project dependencies. *</description>
        </parameter>
        <parameter>
          <name>name</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The User</description>
        </parameter>
        <parameter>
          <name>newname</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The User</description>
        </parameter>
        <parameter>
          <name>providedFiles</name>
          <alias>files</alias>
          <type>java.lang.String[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>The configured files</description>
        </parameter>
        <parameter>
          <name>providedFolders</name>
          <alias>folders</alias>
          <type>java.lang.String[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>The configured folders</description>
        </parameter>
      </parameters>
      <configuration>
        <newname implementation="java.lang.String" default-value="default">${oldname}</newname>
        <buildDir implementation="java.lang.String">${project.build.directory} </buildDir>
        <backupFile implementation="java.lang.String" default-value="settingsutil.xml"/>
        <name implementation="java.lang.String" default-value="default">${name}</name>
      </configuration>
    </mojo>
    <mojo>
      <goal>backup</goal>
      <description>- Apache License 2.0 - &lt;br&gt;
Mojo to back up the Files in a x.xml-file &lt;br&gt;
&lt;br&gt;
LastChangedBy: $Author: marthaler.worb@gmail.com $&lt;br&gt;
LastChangedDate: $Date: 2010-12-29 14:23:06 +0100 (Mi, 29 Dez 2010) $</description>
      <requiresDirectInvocation>false</requiresDirectInvocation>
      <requiresProject>true</requiresProject>
      <requiresReports>false</requiresReports>
      <aggregator>false</aggregator>
      <requiresOnline>false</requiresOnline>
      <inheritedByDefault>true</inheritedByDefault>
      <implementation>com.googlecode.mad.mvntools.settingsutil.filestore.BackupFilestore</implementation>
      <language>java</language>
      <instantiationStrategy>per-lookup</instantiationStrategy>
      <executionStrategy>once-per-session</executionStrategy>
      <parameters>
        <parameter>
          <name>backupFile</name>
          <alias>backupfile</alias>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The name of the backup-file</description>
        </parameter>
        <parameter>
          <name>buildDir</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The project dependencies. *</description>
        </parameter>
        <parameter>
          <name>name</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The User</description>
        </parameter>
        <parameter>
          <name>providedFiles</name>
          <alias>files</alias>
          <type>java.lang.String[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>The configured files</description>
        </parameter>
        <parameter>
          <name>providedFolders</name>
          <alias>folders</alias>
          <type>java.lang.String[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>The configured folders</description>
        </parameter>
      </parameters>
      <configuration>
        <buildDir implementation="java.lang.String">${project.build.directory} </buildDir>
        <backupFile implementation="java.lang.String" default-value="settingsutil.xml"/>
        <name implementation="java.lang.String" default-value="default">${name}</name>
      </configuration>
    </mojo>
    <mojo>
      <goal>rename</goal>
      <description>- Apache License 2.0 - &lt;br&gt;
Mojo to back up the Files in a x.xml-file: rename a user &lt;br&gt;
&lt;br&gt;
LastChangedBy: $Author: marthaler.worb@gmail.com $&lt;br&gt;
LastChangedDate: $Date: 2010-12-29 14:14:06 +0100 (Wed, 29 Dec 2010) $</description>
      <requiresDirectInvocation>false</requiresDirectInvocation>
      <requiresProject>true</requiresProject>
      <requiresReports>false</requiresReports>
      <aggregator>false</aggregator>
      <requiresOnline>false</requiresOnline>
      <inheritedByDefault>true</inheritedByDefault>
      <implementation>com.googlecode.mad.mvntools.settingsutil.filestore.RenameFilestore</implementation>
      <language>java</language>
      <instantiationStrategy>per-lookup</instantiationStrategy>
      <executionStrategy>once-per-session</executionStrategy>
      <parameters>
        <parameter>
          <name>backupFile</name>
          <alias>backupfile</alias>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The name of the backup-file</description>
        </parameter>
        <parameter>
          <name>buildDir</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The project dependencies. *</description>
        </parameter>
        <parameter>
          <name>name</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The User</description>
        </parameter>
        <parameter>
          <name>oldname</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The User</description>
        </parameter>
        <parameter>
          <name>providedFiles</name>
          <alias>files</alias>
          <type>java.lang.String[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>The configured files</description>
        </parameter>
        <parameter>
          <name>providedFolders</name>
          <alias>folders</alias>
          <type>java.lang.String[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>The configured folders</description>
        </parameter>
      </parameters>
      <configuration>
        <buildDir implementation="java.lang.String">${project.build.directory} </buildDir>
        <backupFile implementation="java.lang.String" default-value="settingsutil.xml"/>
        <name implementation="java.lang.String" default-value="default">${name}</name>
        <oldname implementation="java.lang.String" default-value="default">${oldname}</oldname>
      </configuration>
    </mojo>
    <mojo>
      <goal>list</goal>
      <description>- Apache License 2.0 - &lt;br&gt;
Mojo to back up the Files in a x.xml-file: rename a user &lt;br&gt;
&lt;br&gt;
LastChangedBy: $Author: marthaler.worb@gmail.com $&lt;br&gt;
LastChangedDate: $Date: 2010-12-29 14:14:06 +0100 (Wed, 29 Dec 2010) $</description>
      <requiresDirectInvocation>false</requiresDirectInvocation>
      <requiresProject>true</requiresProject>
      <requiresReports>false</requiresReports>
      <aggregator>false</aggregator>
      <requiresOnline>false</requiresOnline>
      <inheritedByDefault>true</inheritedByDefault>
      <implementation>com.googlecode.mad.mvntools.settingsutil.filestore.DeleteNameFilestore</implementation>
      <language>java</language>
      <instantiationStrategy>per-lookup</instantiationStrategy>
      <executionStrategy>once-per-session</executionStrategy>
      <parameters>
        <parameter>
          <name>backupFile</name>
          <alias>backupfile</alias>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The name of the backup-file</description>
        </parameter>
        <parameter>
          <name>buildDir</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The project dependencies. *</description>
        </parameter>
        <parameter>
          <name>name</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The User</description>
        </parameter>
        <parameter>
          <name>providedFiles</name>
          <alias>files</alias>
          <type>java.lang.String[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>The configured files</description>
        </parameter>
        <parameter>
          <name>providedFolders</name>
          <alias>folders</alias>
          <type>java.lang.String[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>The configured folders</description>
        </parameter>
      </parameters>
      <configuration>
        <buildDir implementation="java.lang.String">${project.build.directory} </buildDir>
        <backupFile implementation="java.lang.String" default-value="settingsutil.xml"/>
        <name implementation="java.lang.String" default-value="default">${name}</name>
      </configuration>
    </mojo>
    <mojo>
      <goal>restore</goal>
      <description>- Apache License 2.0 - &lt;br&gt;
Mojo to back up the Files in a x.xml-file &lt;br&gt;
&lt;br&gt;
LastChangedBy: $Author: marthaler.worb@gmail.com $&lt;br&gt;
LastChangedDate: $Date: 2011-01-19 21:28:59 +0100 (Mi, 19 Jan 2011) $</description>
      <requiresDirectInvocation>false</requiresDirectInvocation>
      <requiresProject>true</requiresProject>
      <requiresReports>false</requiresReports>
      <aggregator>false</aggregator>
      <requiresOnline>false</requiresOnline>
      <inheritedByDefault>true</inheritedByDefault>
      <implementation>com.googlecode.mad.mvntools.settingsutil.filestore.RestoreFilestore</implementation>
      <language>java</language>
      <instantiationStrategy>per-lookup</instantiationStrategy>
      <executionStrategy>once-per-session</executionStrategy>
      <parameters>
        <parameter>
          <name>backupFile</name>
          <alias>backupfile</alias>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The name of the backup-file</description>
        </parameter>
        <parameter>
          <name>buildDir</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The project dependencies. *</description>
        </parameter>
        <parameter>
          <name>name</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The User</description>
        </parameter>
        <parameter>
          <name>providedFiles</name>
          <alias>files</alias>
          <type>java.lang.String[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>The configured files</description>
        </parameter>
        <parameter>
          <name>providedFolders</name>
          <alias>folders</alias>
          <type>java.lang.String[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>The configured folders</description>
        </parameter>
      </parameters>
      <configuration>
        <buildDir implementation="java.lang.String">${project.build.directory} </buildDir>
        <backupFile implementation="java.lang.String" default-value="settingsutil.xml"/>
        <name implementation="java.lang.String" default-value="default">${name}</name>
      </configuration>
    </mojo>
    <mojo>
      <goal>delete</goal>
      <description>- Apache License 2.0 - &lt;br&gt;
Mojo to delete the local files &lt;br&gt;
&lt;br&gt;
LastChangedBy: $Author: marthaler.worb@gmail.com $&lt;br&gt;
LastChangedDate: $Date: 2010-12-29 14:14:06 +0100 (Mi, 29 Dez 2010) $</description>
      <requiresDirectInvocation>false</requiresDirectInvocation>
      <requiresProject>true</requiresProject>
      <requiresReports>false</requiresReports>
      <aggregator>false</aggregator>
      <requiresOnline>false</requiresOnline>
      <inheritedByDefault>true</inheritedByDefault>
      <implementation>com.googlecode.mad.mvntools.settingsutil.filestore.LocalFileDeleter</implementation>
      <language>java</language>
      <instantiationStrategy>per-lookup</instantiationStrategy>
      <executionStrategy>once-per-session</executionStrategy>
      <parameters>
        <parameter>
          <name>backupFile</name>
          <alias>backupfile</alias>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The name of the backup-file</description>
        </parameter>
        <parameter>
          <name>buildDir</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The project dependencies. *</description>
        </parameter>
        <parameter>
          <name>name</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The User</description>
        </parameter>
        <parameter>
          <name>providedFiles</name>
          <alias>files</alias>
          <type>java.lang.String[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>The configured files</description>
        </parameter>
        <parameter>
          <name>providedFolders</name>
          <alias>folders</alias>
          <type>java.lang.String[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>The configured folders</description>
        </parameter>
      </parameters>
      <configuration>
        <buildDir implementation="java.lang.String">${project.build.directory} </buildDir>
        <backupFile implementation="java.lang.String" default-value="settingsutil.xml"/>
        <name implementation="java.lang.String" default-value="default">${name}</name>
      </configuration>
    </mojo>
    <mojo>
      <goal>deletename</goal>
      <description>- Apache License 2.0 - &lt;br&gt;
Mojo to back up the Files in a x.xml-file: rename a user &lt;br&gt;
&lt;br&gt;
LastChangedBy: $Author: marthaler.worb@gmail.com $&lt;br&gt;
LastChangedDate: $Date: 2010-12-29 14:14:06 +0100 (Wed, 29 Dec 2010) $</description>
      <requiresDirectInvocation>false</requiresDirectInvocation>
      <requiresProject>true</requiresProject>
      <requiresReports>false</requiresReports>
      <aggregator>false</aggregator>
      <requiresOnline>false</requiresOnline>
      <inheritedByDefault>true</inheritedByDefault>
      <implementation>com.googlecode.mad.mvntools.settingsutil.filestore.ListnamesFilestore</implementation>
      <language>java</language>
      <instantiationStrategy>per-lookup</instantiationStrategy>
      <executionStrategy>once-per-session</executionStrategy>
      <parameters>
        <parameter>
          <name>backupFile</name>
          <alias>backupfile</alias>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The name of the backup-file</description>
        </parameter>
        <parameter>
          <name>buildDir</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The project dependencies. *</description>
        </parameter>
        <parameter>
          <name>name</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The User</description>
        </parameter>
        <parameter>
          <name>providedFiles</name>
          <alias>files</alias>
          <type>java.lang.String[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>The configured files</description>
        </parameter>
        <parameter>
          <name>providedFolders</name>
          <alias>folders</alias>
          <type>java.lang.String[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>The configured folders</description>
        </parameter>
      </parameters>
      <configuration>
        <buildDir implementation="java.lang.String">${project.build.directory} </buildDir>
        <backupFile implementation="java.lang.String" default-value="settingsutil.xml"/>
        <name implementation="java.lang.String" default-value="default">${name}</name>
      </configuration>
    </mojo>
  </mojos>
  <dependencies>
    <dependency>
      <groupId>com.googlecode.mad-mvntools</groupId>
      <artifactId>common</artifactId>
      <type>jar</type>
      <version>0.0.2</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-plugin-api</artifactId>
      <type>jar</type>
      <version>2.0</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-model</artifactId>
      <type>jar</type>
      <version>2.2.1</version>
    </dependency>
    <dependency>
      <groupId>org.codehaus.plexus</groupId>
      <artifactId>plexus-utils</artifactId>
      <type>jar</type>
      <version>1.5.15</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-artifact</artifactId>
      <type>jar</type>
      <version>2.0</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-project</artifactId>
      <type>jar</type>
      <version>2.0</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-profile</artifactId>
      <type>jar</type>
      <version>2.0</version>
    </dependency>
    <dependency>
      <groupId>org.codehaus.plexus</groupId>
      <artifactId>plexus-container-default</artifactId>
      <type>jar</type>
      <version>1.0-alpha-8</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <type>jar</type>
      <version>3.8.1</version>
    </dependency>
    <dependency>
      <groupId>classworlds</groupId>
      <artifactId>classworlds</artifactId>
      <type>jar</type>
      <version>1.1-alpha-2</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-artifact-manager</artifactId>
      <type>jar</type>
      <version>2.0</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-repository-metadata</artifactId>
      <type>jar</type>
      <version>2.0</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven.wagon</groupId>
      <artifactId>wagon-provider-api</artifactId>
      <type>jar</type>
      <version>1.0-alpha-5</version>
    </dependency>
    <dependency>
      <groupId>com.thoughtworks.xstream</groupId>
      <artifactId>xstream</artifactId>
      <type>jar</type>
      <version>1.3</version>
    </dependency>
    <dependency>
      <groupId>xpp3</groupId>
      <artifactId>xpp3_min</artifactId>
      <type>jar</type>
      <version>1.1.4c</version>
    </dependency>
  </dependencies>
</plugin>
New to GrepCode? Check out our FAQ X