[prev in list] [next in list] [prev in thread] [next in thread] 

List:       selenium-commits
Subject:    [Selenium-commits] [625] trunk/code/java/build.xml: Refactor the
From:       mdub () codehaus ! org
Date:       2005-09-23 11:57:51
Message-ID: 20050923115751.10086.qmail () codehaus ! org
[Download RAW message or body]

[Attachment #2 (text/html)]

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><style type="text/css"><!--
body {background:#ffffff;font-family:Verdana,Helvetica,Arial,sans-serif;}
h3 {margin:15px 0;padding:0;line-height:0;}
#msg {margin: 0 0 2em 0;}
#msg dl, #msg ul, #msg pre {padding:1em;border:1px dashed black;margin: 10px 0 30px \
0;} #msg dl {background:#ccccff;}
#msg pre {background:#ffffcc;}
#msg ul {background:#cc99ff;list-style:none;}
#msg dt {font-weight:bold;float:left;width: 6em;}
#msg dt:after { content:':';}
#patch h4 {padding: 0 \
10px;line-height:1.5em;margin:0;background:#ccffff;border-bottom:1px solid \
black;margin:0 0 10px 0;} #patch .propset h4, #patch .binary h4 {margin: 0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {background:#eeeeee;padding: 0 0 10px 0;}
#patch .propset .diff, #patch .binary .diff  {padding: 10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary \
{border:1px solid black;margin:10px 0;} #patch .add {background:#ddffdd;}
#patch .rem {background:#ffdddd;}
#patch .lines, .info {color:#888888;background:#ffffff;}
--></style>
<title>[625] trunk/code/java/build.xml: Refactor the targets a little.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd>625</dd>
<dt>Author</dt> <dd>mdub</dd>
<dt>Date</dt> <dd>2005-09-23 07:57:51 -0400 (Fri, 23 Sep 2005)</dd>
</dl>

<h3>Log Message</h3>
<pre>Refactor the targets a little.  
In particular, tests are part of the default target, but not part of \
&quot;dist&quot;.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkcodejavabuildxml">trunk/code/java/build.xml</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkcodejavabuildxml"></a>
<div class="modfile"><h4>Modified: trunk/code/java/build.xml (624 => 625)</h4>
<pre class="diff">
<span class="info">--- trunk/code/java/build.xml	2005-09-17 11:51:50 UTC (rev 624)
+++ trunk/code/java/build.xml	2005-09-23 11:57:51 UTC (rev 625)
</span><span class="lines">@@ -1,4 +1,5 @@
</span><span class="cx"> &lt;project name=&quot;selenium&quot; \
default=&quot;all&quot;&gt; </span><span class="add">+
</span><span class="cx">     &lt;property name=&quot;version&quot; \
value=&quot;unreleased&quot;/&gt;  
     &lt;property environment=&quot;env&quot;/&gt;
</span><span class="lines">@@ -46,10 +47,17 @@
</span><span class="cx">         &lt;pathelement \
location=&quot;${ant.home}/lib&quot;/&gt;  &lt;/path&gt;
 
</span><span class="rem">-    &lt;target name=&quot;all&quot; depends=&quot;clean, \
                init, compile, test, integration-test, checkstyle, report, \
                jar&quot;/&gt;
-    &lt;target name=&quot;make&quot; depends=&quot;clean, init, compile, test, \
integration-test, jar&quot;/&gt; </span><span class="add">+    &lt;target \
name=&quot;build&quot;  +            description=&quot;build the software&quot;
+            depends=&quot;init, compile, jar&quot;/&gt;
</span><span class="cx"> 
</span><span class="rem">-    &lt;target name=&quot;dist&quot; \
depends=&quot;make&quot;&gt; </span><span class="add">+    &lt;target \
name=&quot;all&quot;  +            description=&quot;default target&quot;
+            depends=&quot;build, test, integration-test, report&quot;/&gt;
+    
+    &lt;target name=&quot;dist&quot; 
+            description=&quot;prepare the distribution&quot;
+            depends=&quot;clean, build&quot;&gt;
</span><span class="cx"> 
         &lt;mkdir dir=&quot;dist&quot;/&gt;
 
</span><span class="lines">@@ -124,7 +132,7 @@
</span><span class="cx">         &lt;mkdir \
dir=&quot;${integration.test.logs.dir}&quot;/&gt;  &lt;/target&gt;
 
</span><span class="rem">-    &lt;target name=&quot;compile-main&quot; \
description=&quot;Compile java source&quot;&gt; </span><span class="add">+    \
&lt;target name=&quot;compile&quot; description=&quot;Compile java source&quot;&gt; \
                </span><span class="cx">         &lt;mkdir \
                dir=&quot;${classes.dir}&quot;/&gt;
         &lt;javac destdir=&quot;${classes.dir}&quot; \
classpathref=&quot;classpath&quot; debug=&quot;on&quot;&gt;  &lt;src \
location=&quot;${main.dir}&quot;/&gt; </span><span class="lines">@@ -141,9 +149,7 @@
</span><span class="cx">         &lt;/javac&gt;
     &lt;/target&gt;
 
</span><span class="rem">-    &lt;target name=&quot;compile&quot; \
                depends=&quot;compile-main, -instrument-main&quot;/&gt;
-
-    &lt;target name=&quot;test&quot; depends=&quot;compile-main&quot;&gt;
</span><span class="add">+    &lt;target name=&quot;test&quot; \
depends=&quot;jcoverage-instrument&quot;&gt; </span><span class="cx">         \
&lt;junit fork=&quot;yes&quot; forkmode=&quot;once&quot; printsummary=&quot;yes&quot; \
failureproperty=&quot;tests.failed&quot;&gt;  &lt;classpath \
refid=&quot;instrumented.classpath&quot;/&gt;  &lt;formatter \
type=&quot;xml&quot;/&gt; </span><span class="lines">@@ -169,7 +175,7 @@
</span><span class="cx">     &lt;/target&gt;
 	
      &lt;!-- could be refactored --&gt;
</span><span class="rem">-    &lt;target name=&quot;integration-test-mac&quot; \
depends=&quot;compile-main&quot; if=&quot;isMac&quot;&gt; </span><span class="add">+  \
&lt;target name=&quot;integration-test-mac&quot; depends=&quot;compile&quot; \
if=&quot;isMac&quot;&gt; </span><span class="cx">         
         &lt;echo&gt;Integration Tests for Embedded Jettu Web Container&lt;/echo&gt;
 
</span><span class="lines">@@ -213,7 +219,7 @@
</span><span class="cx"> 
     &lt;/target&gt;
 
</span><span class="rem">-    &lt;target name=&quot;integration-test-windows&quot; \
depends=&quot;compile-main&quot; if=&quot;isWindows&quot;&gt; </span><span \
class="add">+    &lt;target name=&quot;integration-test-windows&quot; \
depends=&quot;compile&quot; if=&quot;isWindows&quot;&gt; </span><span class="cx"> 
         &lt;echo&gt;Integration Tests for Embedded Web Container&lt;/echo&gt;
 
</span><span class="lines">@@ -256,7 +262,7 @@
</span><span class="cx">         &lt;/junit&gt;
     &lt;/target&gt;
 	
</span><span class="rem">-	&lt;target name=&quot;integration-test-unix&quot; \
depends=&quot;compile-main&quot; if=&quot;isUnix&quot; unless=&quot;isMac&quot;&gt; \
</span><span class="add">+	&lt;target name=&quot;integration-test-unix&quot; \
depends=&quot;compile&quot; if=&quot;isUnix&quot; unless=&quot;isMac&quot;&gt; \
                </span><span class="cx"> 
         &lt;echo&gt;Integration Tests for Embedded Web Container&lt;/echo&gt;
 
</span><span class="lines">@@ -314,7 +320,7 @@
</span><span class="cx"> 
 	&lt;/target&gt;
 	
</span><span class="rem">-    &lt;target name=&quot;integration-test&quot; \
depends=&quot;compile-main, integration-test-os-test, integration-test-unix, \
integration-test-mac, integration-test-windows&quot; &gt; </span><span class="add">+  \
&lt;target name=&quot;integration-test&quot; depends=&quot;compile, \
integration-test-os-test, integration-test-unix, integration-test-mac, \
integration-test-windows&quot; &gt; </span><span class="cx"> 
         &lt;junitreport todir=&quot;${integration.test.reports.dir}&quot;&gt;
             &lt;fileset dir=&quot;${integration.test.logs.dir}&quot;&gt;
</span><span class="lines">@@ -326,17 +332,28 @@
</span><span class="cx"> 
     &lt;/target&gt;
 
</span><span class="rem">-    &lt;target name=&quot;jar&quot; \
depends=&quot;compile-main&quot; description=&quot;Jar java classes&quot;&gt; \
</span><span class="add">+    &lt;target name=&quot;jar&quot; \
depends=&quot;compile&quot; description=&quot;Jar java classes&quot;&gt; </span><span \
class="cx">         &lt;jar basedir=&quot;target/classes&quot; \
destfile=&quot;target/${ant.project.name}-${version}.jar&quot;/&gt;  &lt;/target&gt;
 
</span><span class="rem">-    &lt;target name=&quot;report&quot; \
depends=&quot;-checkstyle-tests,-simian,-coverage-report&quot;/&gt; </span><span \
class="add">+    &lt;target name=&quot;report&quot;  +            \
description=&quot;generate code-quality reports&quot; +            \
depends=&quot;checkstyle, simian, jcoverage&quot;/&gt; </span><span class="cx"> 
     &lt;!-- ================== Checkstyle target Definitions ======================= \
--&gt; </span><span class="rem">-    &lt;target name=&quot;checkstyle&quot; \
depends=&quot;init&quot; description=&quot;Validate code against coding \
standards&quot;&gt; </span><span class="add">+
+    &lt;target name=&quot;checkstyle&quot; 
+            description=&quot;Validate code against coding standards&quot;
+            depends=&quot;checkstyle-main, checkstyle-tests&quot; /&gt;
+            
+    &lt;target name=&quot;checkstyle-main&quot; 
+            depends=&quot;init&quot; &gt;
+
</span><span class="cx">         &lt;taskdef \
resource=&quot;checkstyletask.properties&quot; \
classpathref=&quot;report.classpath&quot;/&gt;  
</span><span class="rem">-        &lt;checkstyle \
config=&quot;${etc.dir}/checkstyle-main.xml&quot; \
failureProperty=&quot;checkstyle.failed&quot; failonviolation=&quot;false&quot;&gt; \
</span><span class="add">+        &lt;checkstyle \
config=&quot;${etc.dir}/checkstyle-main.xml&quot;  +                    \
failureProperty=&quot;checkstyle.failed&quot;  +                    \
failonviolation=&quot;false&quot;&gt; </span><span class="cx">             \
&lt;fileset dir=&quot;${main.dir}&quot;&gt;  &lt;exclude \
name=&quot;Acme/**&quot;/&gt;  &lt;include name=&quot;**/*.java&quot;/&gt;
</span><span class="lines">@@ -351,10 +368,14 @@
</span><span class="cx">         &lt;!--           &lt;fail \
if=&quot;checkstyle.failed&quot; message=&quot;Checkstyle failed - see report for \
details&quot;/&gt;--&gt;  &lt;/target&gt;
 
</span><span class="rem">-    &lt;target name=&quot;-checkstyle-tests&quot; \
depends=&quot;init&quot; description=&quot;Validate test code against coding \
standards&quot;&gt; </span><span class="add">+    &lt;target \
name=&quot;checkstyle-tests&quot;  +            depends=&quot;init&quot;&gt;
+
</span><span class="cx">         &lt;taskdef \
resource=&quot;checkstyletask.properties&quot; \
classpathref=&quot;report.classpath&quot;/&gt;  
</span><span class="rem">-        &lt;checkstyle \
config=&quot;${etc.dir}/checkstyle-tests.xml&quot; \
failureProperty=&quot;checkstyle.failed&quot; failonviolation=&quot;false&quot;&gt; \
</span><span class="add">+        &lt;checkstyle \
config=&quot;${etc.dir}/checkstyle-tests.xml&quot;  +                    \
failureProperty=&quot;checkstyle.failed&quot;  +                    \
failonviolation=&quot;false&quot;&gt; </span><span class="cx">             \
                &lt;fileset dir=&quot;${test.dir}&quot; \
                includes=&quot;**/*.java&quot;/&gt;
             &lt;fileset dir=&quot;${integration.test.dir}&quot; \
                includes=&quot;**/*.java&quot;/&gt;
             &lt;formatter type=&quot;xml&quot; \
tofile=&quot;${checkstyle-tests.reports.dir}/checkstyle-errors.xml&quot;/&gt; \
</span><span class="lines">@@ -368,7 +389,8 @@ </span><span class="cx">     \
&lt;/target&gt;  
     &lt;!-- ================== Simian target Definitions ======================= \
--&gt; </span><span class="rem">-    &lt;target name=&quot;-simian&quot; \
depends=&quot;init&quot;  description=&quot;Do code duplication analysis&quot; &gt; \
</span><span class="add">+    &lt;target name=&quot;simian&quot; \
depends=&quot;init&quot;  +            description=&quot;Do code duplication \
analysis&quot; &gt; </span><span class="cx">         &lt;taskdef \
resource=&quot;simiantask.properties&quot; \
classpathref=&quot;report.classpath&quot;/&gt;  
         &lt;simian threshold=&quot;6&quot; failOnDuplication=&quot;false&quot;&gt;
</span><span class="lines">@@ -384,7 +406,9 @@
</span><span class="cx">     &lt;/target&gt;
 
     &lt;!-- ================== Coverage target Definitions ======================= \
--&gt; </span><span class="rem">-    &lt;target name=&quot;-instrument-main&quot; \
description=&quot;Add JCoverage Instumentation&quot;&gt; </span><span class="add">+
+    &lt;!-- Add JCoverage Instumentation --&gt;
+    &lt;target name=&quot;jcoverage-instrument&quot; depends=&quot;compile&quot;&gt;
</span><span class="cx">         &lt;taskdef name=&quot;instrument&quot; \
classname=&quot;com.jcoverage.ant.InstrumentTask&quot; \
                classpathref=&quot;report.classpath&quot;/&gt;
         &lt;instrument todir=&quot;${instrumented.classes.dir}&quot; \
classpathref=&quot;report.classpath&quot;&gt;  &lt;fileset \
dir=&quot;${classes.dir}&quot;&gt; </span><span class="lines">@@ -393,30 +417,31 @@
</span><span class="cx">         &lt;/instrument&gt;
     &lt;/target&gt;
 
</span><span class="rem">-    &lt;target name=&quot;-coverage-report&quot; \
depends=&quot;test&quot; description=&quot;Generate jCoverage report&quot;&gt; \
</span><span class="add">+    &lt;target name=&quot;jcoverage&quot; \
depends=&quot;test&quot; description=&quot;Generate jCoverage report&quot;&gt; \
</span><span class="cx">         &lt;available file=&quot;jcoverage.ser&quot; \
                property=&quot;jcoverage.ser.available&quot;/&gt;
         &lt;fail unless=&quot;jcoverage.ser.available&quot; \
message=&quot;jcoverage.ser does not exist. The instrument task must be ran \
                first.&quot;/&gt;
         &lt;taskdef name=&quot;report&quot; \
classname=&quot;com.jcoverage.ant.CoverageReportTask&quot; \
                classpathref=&quot;report.classpath&quot;/&gt;
         &lt;report srcdir=&quot;${main.dir}&quot; \
destdir=&quot;${jcoverage.reports.dir}&quot;/&gt;  &lt;/target&gt;
 	
</span><span class="rem">-	&lt;target name=&quot;set&quot;&gt;
-		&lt;property name=&quot;mac.os&quot; value=&quot;true&quot;/&gt;
-		&lt;property name=&quot;win.os&quot; value=&quot;true&quot;/&gt;
-	
-	&lt;/target&gt;
-	&lt;target name=&quot;cond&quot; depends=&quot;set, cond-if&quot;/&gt;
</span><span class="add">+    &lt;target name=&quot;set&quot;&gt;
+        &lt;property name=&quot;mac.os&quot; value=&quot;true&quot;/&gt;
+        &lt;property name=&quot;win.os&quot; value=&quot;true&quot;/&gt;
+        
+    &lt;/target&gt;
</span><span class="cx"> 
</span><span class="rem">-	&lt;target name=&quot;cond-if&quot; \
                if=&quot;mac.os&quot;&gt;
-	  &lt;antcall target=&quot;cond-if-2&quot;/&gt;
-	&lt;/target&gt;
-
-	&lt;target name=&quot;cond-if-2&quot; if=&quot;win.os&quot;&gt;
-	  &lt;antcall target=&quot;cond-if-3&quot;/&gt;
-	&lt;/target&gt;
-
-	&lt;target name=&quot;cond-if-3&quot; unless=&quot;linux.os&quot;&gt;
-	  &lt;echo message=&quot;yes&quot;/&gt;
-	&lt;/target&gt;
</span><span class="add">+    &lt;target name=&quot;cond&quot; depends=&quot;set, \
cond-if&quot;/&gt; +    
+    &lt;target name=&quot;cond-if&quot; if=&quot;mac.os&quot;&gt;
+        &lt;antcall target=&quot;cond-if-2&quot;/&gt;
+    &lt;/target&gt;
+    
+    &lt;target name=&quot;cond-if-2&quot; if=&quot;win.os&quot;&gt;
+        &lt;antcall target=&quot;cond-if-3&quot;/&gt;
+    &lt;/target&gt;
+    
+    &lt;target name=&quot;cond-if-3&quot; unless=&quot;linux.os&quot;&gt;
+        &lt;echo message=&quot;yes&quot;/&gt;
+    &lt;/target&gt;
</span><span class="cx"> 	
 &lt;/project&gt;
</span>
</pre>
</div>
</div>

</body>
</html>



_______________________________________________
Selenium-commits mailing list
Selenium-commits@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic