You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by bw...@apache.org on 2003/04/05 12:19:44 UTC

cvs commit: maven/src/plugins-build/eclipse plugin.jelly

bwalding    2003/04/05 02:19:44

  Modified:    src/plugins-build/eclipse/xdocs goals.xml
               src/plugins-build/eclipse plugin.jelly
  Log:
  Split the eclipse goals into generate-project and generate-classpath. Updated doco to match.
  
  Revision  Changes    Path
  1.2       +8 -3      maven/src/plugins-build/eclipse/xdocs/goals.xml
  
  Index: goals.xml
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/eclipse/xdocs/goals.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- goals.xml	24 Jan 2003 03:45:09 -0000	1.1
  +++ goals.xml	5 Apr 2003 10:19:44 -0000	1.2
  @@ -12,7 +12,8 @@
           <name>eclipse</name>
           <description>
               The default goal. This goal simply executes the 
  -            <a href="#eclipse:generate-project">eclipse:generate-project</a> goal
  +            <a href="#eclipse:generate-project">eclipse:generate-project</a> and
  +            <a href="#eclipse:generate-classpath">eclipse:generate-classpath</a> goals.
           </description>
         </goal>
           
  @@ -21,16 +22,20 @@
             <description>
               Generates a <code>.project</code> file for eclipse describing
               the project and 'marking' it as a java project
  -            <br />
  +          </description>
  +        </goal>
  +        <name>eclipse:generate-classpath</name>
  +          <description>
               Generates a <code>.classpath</code> file for the eclipse project
               with classpath entries for
               <ol>
                 <li>the build source directory</li>
                 <li>the build unit test source directory</li>
                 <li>the JRE being used</li>
  +              <li>the appropriate version of JUnit</li>
                 <li>each Maven project <code>dependency</code></li>
                 <li>an output directory for compiled code: 
  -                <code>target\eclipse\classes</code>
  +                <code>target\classes</code>
                 </li>
               </ol>
             </description>
  
  
  
  1.10      +15 -9     maven/src/plugins-build/eclipse/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/eclipse/plugin.jelly,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- plugin.jelly	27 Mar 2003 13:16:40 -0000	1.9
  +++ plugin.jelly	5 Apr 2003 10:19:44 -0000	1.10
  @@ -12,22 +12,21 @@
     <!--==================================================================-->    
     <goal name="eclipse"
       description="Generate Eclipse project files"
  -    prereqs="eclipse:generate-project"/>
  +    prereqs="eclipse:generate-project, eclipse:generate-classpath">
  +    <ant:echo>Now refresh your project in Eclipse (right click on the project and select "Refresh")</ant:echo>
  +  </goal>
   
     <goal name="eclipse:generate-project"
       description="Generate Eclipse .project and .classpath project files">
   
  -    <j:set var="outputDir" value="${maven.eclipse.output.dir}"/>
  -    <j:if test="${empty outputDir}">
  -      <j:set var="outputDir" value="target\classes"/>
  -    </j:if>
  +    
       
       <ant:echo>Creating ${basedir}/.project ...</ant:echo>
   
       <j:file name="${basedir}/.project" prettyPrint="true" xmlns="dummy">
   <projectDescription>
     <name>${pom.artifactId}</name>
  -  <comment></comment>
  +  <comment>${pom.description}</comment>
     <projects>
     </projects>
     <buildSpec>
  @@ -42,9 +41,17 @@
     </natures>
   </projectDescription>
       </j:file>
  -
  +  </goal>
  +	
  +  <goal name="eclipse:generate-classpath">
  +  
       <ant:echo>Creating ${basedir}/.classpath ...</ant:echo>
  -
  +    
  +    <j:set var="outputDir" value="${maven.eclipse.output.dir}"/>
  +    <j:if test="${empty outputDir}">
  +      <j:set var="outputDir" value="target\classes"/>
  +    </j:if>
  +    
       <j:file name="${basedir}/.classpath" prettyPrint="true" xmlns="dummy">
         <classpath>
   
  @@ -89,7 +96,6 @@
       </classpath>
     </j:file>  
     
  -  <ant:echo>Now refresh your project in Eclipse (right click on the project and select "Refresh")</ant:echo>
     
     </goal>
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org