Issue Details (XML | Word | Printable)

Key: CACTUS-151
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Petar Tahchiev
Reporter: Vincent Massol
Votes: 5
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
Cactus

Refactor Ant integration to use Cargo

Created: 04/Nov/04 11:52 AM   Updated: 11/Apr/08 12:35 PM
Return to search
Component/s: Ant Integration
Affects Version/s: None
Fix Version/s: 1.8

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works 08-08-05_xnguyen.diff 2005-08-08 11:21 AM Xuan Thang Nguyen 22 kB
File Licensed for inclusion in ASF works 09-08-xnguyen.diff 2005-08-09 11:07 PM Xuan Thang Nguyen 43 kB
File Licensed for inclusion in ASF works 11-08-05-xnguyen.diff 2005-08-11 10:26 PM Xuan Thang Nguyen 79 kB
File Licensed for inclusion in ASF works 14-08-05_xnguyen 2005-08-14 03:18 PM Xuan Thang Nguyen 10 kB
File Licensed for inclusion in ASF works 28-08-05_xnguyen(final).tgz 2005-08-28 07:56 PM Xuan Thang Nguyen 15 kB
File Licensed for inclusion in ASF works build.properties 2005-08-14 03:18 PM Xuan Thang Nguyen 0.0 kB
XML File Licensed for inclusion in ASF works build.xml 2004-12-29 06:33 PM Nicolas Chalumeau 17 kB
Java Source File Licensed for inclusion in ASF works CactusTestTask.java 2005-07-21 10:26 PM Xuan Thang Nguyen 15 kB
Text File Licensed for inclusion in ASF works felipeal_after_171_merge.patch 2005-07-21 12:58 PM Felipe Leme 30 kB
Text File Licensed for inclusion in ASF works felipeal_fixed_checkstyle_and_xml_comment.patch 2005-07-21 08:05 PM Felipe Leme 30 kB
Text File Licensed for inclusion in ASF works felipeal_fixed_checkstyle_and_xml_comment.patch 2005-07-21 08:05 PM Felipe Leme 30 kB
Zip Archive Licensed for inclusion in ASF works files.zip 2005-07-15 05:26 PM Xuan Thang Nguyen 13 kB
Java Source File Licensed for inclusion in ASF works Jetty4xTestSetup.java 2005-08-14 03:18 PM Xuan Thang Nguyen 20 kB
File Licensed for inclusion in ASF works patch-merge-all.diff 2005-07-21 10:26 PM Xuan Thang Nguyen 18 kB
File Licensed for inclusion in ASF works patch.diff 2005-07-21 01:34 PM Xuan Thang Nguyen 13 kB
GZip Archive Licensed for inclusion in ASF works patch20-07.tgz 2005-07-20 05:05 PM Xuan Thang Nguyen 7 kB
File Licensed for inclusion in ASF works patch_cargo_containerKeyandVersion.diff 2005-08-05 09:26 PM Xuan Thang Nguyen 4 kB
File Licensed for inclusion in ASF works plugin.jelly 2005-08-10 11:23 PM Xuan Thang Nguyen 56 kB
XML File Licensed for inclusion in ASF works test-cactustest.xml 2005-08-28 08:12 PM Xuan Thang Nguyen 0.8 kB
Java Source File Licensed for inclusion in ASF works TestCactusTestTask.java 2005-08-28 08:12 PM Xuan Thang Nguyen 5 kB
GZip Archive Licensed for inclusion in ASF works xnguyen-patch.tgz 2005-07-15 09:21 PM Xuan Thang Nguyen 9 kB
GZip Archive Licensed for inclusion in ASF works xnguyen-patch.tgz 2005-07-15 09:18 PM 9 kB
Issue Links:
Dependants
 
Incorporates
 
dependent

Resolution Date: 02/Mar/08 10:09 PM


 Description  « Hide

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Vincent Massol added a comment - 04/Nov/04 11:55 AM
Hi Ricardo,

We are planning to migrate the Ant integration to use Cargo which supports Tomcat 5.x. Right now you could probably replace calling the <cactus> task by calling the Cargo Ant task for Tomcat 5.x. See http://cargo.codehaus.org. You can send emails on the cargo mailing list if you have any difficulty.

Thanks

Vincent Massol made changes - 04/Nov/04 11:55 AM
Field Original Value New Value
Link This issue is depended upon by CACTUS-148 [ CACTUS-148 ]
Felipe Leme added a comment - 04/Nov/04 01:29 PM
I'm fine with that - just not sure if I will have time to do that then (as I'm not familiarized with Cargo yet). Anyway, I could at least create the test cases using jelly - they would be independent on how the fix is done.

Felipe Leme made changes - 04/Nov/04 01:29 PM
Link This issue is depended upon by CACTUS-90 [ CACTUS-90 ]
Vincent Massol added a comment - 04/Nov/04 04:07 PM
Thanks Marcus. We're currently refactoring the Ant integration to use Cargo (http://cargo.codehaus.org) and in the near future all the container logic will be in Cargo. Your patch will not be lost as we'll be able to use it to implement JBoss 4.x support for Cargo. If you wish to participate to cargo please join us on the Cargo mailing list.

Thanks
-Vincent

Vincent Massol made changes - 04/Nov/04 04:07 PM
Link This issue is depended upon by CACTUS-152 [ CACTUS-152 ]
Vincent Massol made changes - 05/Nov/04 07:57 AM
Link This issue is depended upon by CACTUS-153 [ CACTUS-153 ]
Vincent Massol added a comment - 05/Nov/04 01:37 PM
WebLogic 8.x support is already implemented in Cargo 0.3.

Vincent Massol made changes - 05/Nov/04 01:37 PM
Link This issue is depended upon by CACTUS-121 [ CACTUS-121 ]
Vincent Massol added a comment - 05/Nov/04 01:41 PM
Ability to change the JBoss port will be implemented in Cargo once it supports JBoss (very soon now hopefully).

Vincent Massol made changes - 05/Nov/04 01:41 PM
Link This issue is depended upon by CACTUS-86 [ CACTUS-86 ]
Vincent Massol added a comment - 05/Nov/04 02:02 PM
This has to be addressed in Cargo.

Vincent Massol made changes - 05/Nov/04 02:02 PM
Link This issue is depended upon by CACTUS-62 [ CACTUS-62 ]
Vincent Massol added a comment - 11/Nov/04 11:30 AM
Sven, you're right, this isn't suported in Cactus. We're now migrating to Cargo (http://cargo.codehaus.org) so this issue will be solved in Cargo land. Thanks.

Vincent Massol made changes - 11/Nov/04 11:30 AM
Link This issue is depended upon by CACTUS-104 [ CACTUS-104 ]
Vincent Massol added a comment - 07/Dec/04 07:09 AM
Will be done in Cargo land (if someone provides a patch to support WebSphere).

Vincent Massol made changes - 07/Dec/04 07:09 AM
Link This issue is depended upon by CACTUS-160 [ CACTUS-160 ]
Vincent Massol made changes - 07/Dec/04 07:11 AM
Link This issue is depended upon by CACTUS-159 [ CACTUS-159 ]
Vincent Massol added a comment - 07/Dec/04 07:11 AM
This is being worked on in Cargo land.

Nicolas Chalumeau added a comment - 29/Dec/04 06:33 PM
Here is the curent state. It is the samples/servlet/src/script/share build.xml.
It work for tomcat5x (it is hard coded). The test are passe but I need to remove
TestSampleFilter.java, TestFilterHttpHeaders.java and TestBasicAuthentication.java from the
test execution. I don't know why they failed but continu to look at this.

Nicolas,

Nicolas Chalumeau made changes - 29/Dec/04 06:33 PM
Attachment build.xml [ 18473 ]
Vincent Massol made changes - 28/Jan/05 06:13 AM
Fix Version/s 1.7 [ 10693 ]
Vincent Massol added a comment - 11/Mar/05 01:23 AM
This feature is already supported by Cargo and once Cactus moves to use it, it'll be available for free :-)

Vincent Massol made changes - 11/Mar/05 01:23 AM
Link This issue is depended upon by CACTUS-196 [ CACTUS-196 ]
Felipe Leme added a comment - 21/Apr/05 08:57 PM
Ok, I did the Ant changes on CACTUS-204 and once I get Maven working again on my environment I will finish this issue.

Felipe Leme made changes - 21/Apr/05 08:57 PM
Link This issue depends upon CACTUS-204 [ CACTUS-204 ]
Felipe Leme made changes - 25/Apr/05 11:03 AM
Link This issue is depended upon by CACTUS-90 [ CACTUS-90 ]
Felipe Leme made changes - 06/Jul/05 09:38 PM
Fix Version/s 1.8 [ 11065 ]
Environment
Xuan Thang Nguyen made changes - 08/Jul/05 03:17 PM
Assignee Xuan Thang Nguyen [ xnguyen ]
Felipe Leme made changes - 12/Jul/05 11:47 AM
Fix Version/s 1.7.1 [ 11065 ]
Fix Version/s 1.8 [ 12310167 ]
Xuan Thang Nguyen added a comment - 15/Jul/05 05:26 PM
Cargo&Cactus integration, first increment.


Xuan Thang Nguyen made changes - 15/Jul/05 05:26 PM
Attachment files.zip [ 12311245 ]
Xuan Thang Nguyen made changes - 15/Jul/05 05:29 PM
Status Open [ 1 ] In Progress [ 3 ]
Xuan Thang Nguyen added a comment - 15/Jul/05 09:21 PM
First patch for CACTUS-151
New tag & update for samples to use cargo

Xuan Thang Nguyen made changes - 15/Jul/05 09:21 PM
Attachment xnguyen-patch.tgz [ 12311249 ]
Felipe Leme added a comment - 19/Jul/05 07:28 PM
I tried to apply the patch this morning, but CVS was down for maintenance :-(

Xuan Thang Nguyen added a comment - 20/Jul/05 05:05 PM
Correct patch agaist HEAD
New task for CactusTest and update on samples/servlet/src/scripts/share/build.xml to use cargo with cactus
Previous patch uses incorrect files

Xuan Thang Nguyen made changes - 20/Jul/05 05:05 PM
Attachment patch20-07.tgz [ 12311304 ]
Felipe Leme made changes - 21/Jul/05 11:44 AM
Link This issue blocks CACTUS-222 [ CACTUS-222 ]
Felipe Leme added a comment - 21/Jul/05 12:58 PM
Hi Xuan,

I applied your patches but haven't ananlyzed the changes yet - although I realized you created a new class called CactusTestTask instead of replacing CactusTaks - is there a reason for that?

Also, I'm providing a new patch against the changes I did on the HEAD branch.

-- Felipe

PS: BTW, please use a 'cvs diff -uN' at the root directory next time you need to submit a patch

Felipe Leme made changes - 21/Jul/05 12:58 PM
Attachment felipeal_after_171_merge.patch [ 12311325 ]
Xuan Thang Nguyen added a comment - 21/Jul/05 01:34 PM
No modification into common-build.xml is needed.

Xuan Thang Nguyen made changes - 21/Jul/05 01:34 PM
Attachment patch.diff [ 12311326 ]
Felipe Leme added a comment - 21/Jul/05 08:05 PM
Same patch as above, but fixed checkstyle complaints and a problem on macrodef, where the comment:

      <!-- <@j2ee13.begin@mkdir dir="${target.testreports.dir}/jboss3x"/@j2ee13.end@> -->


produced:

      <!-- <!-- mkdir dir="${target.testreports.dir}/jboss3x"/ --> -->

which made the XML invalid (it cannot be nested comments)

Felipe Leme added a comment - 21/Jul/05 08:05 PM
Same patch as above, but fixed checkstyle complaints and a problem on macrodef, where the comment:

      <!-- <@j2ee13.begin@mkdir dir="${target.testreports.dir}/jboss3x"/@j2ee13.end@> -->


produced:

      <!-- <!-- mkdir dir="${target.testreports.dir}/jboss3x"/ --> -->

which made the XML invalid (it cannot be nested comments)

Felipe Leme made changes - 21/Jul/05 08:05 PM
Felipe Leme made changes - 21/Jul/05 08:05 PM
Felipe Leme added a comment - 21/Jul/05 08:07 PM
Sorry, clicked the submit button twice...

Xuan Thang Nguyen added a comment - 21/Jul/05 10:26 PM
Hi Felipe,
I merge your patch and mine into the patch-merge-all.diff against HEAD.
I don't know how to use the -uN option for cvs diff with anonymous account (I cannot cvs add a new file before that) :(. Perhaps you can tell me how to do this. In the patch there no info of the CactusTestTask.java. So maybe you have to help me by adding it into the repo.
Thanks
Xuan

Xuan Thang Nguyen made changes - 21/Jul/05 10:26 PM
Attachment patch-merge-all.diff [ 12311334 ]
Attachment CactusTestTask.java [ 12311333 ]
Repository Revision Date User Message
ASF #239196 Thu Jul 21 23:24:39 UTC 2005 felipeal CACTUS-151: first batch of Xuan's work
Files Changed
MODIFY /jakarta/cactus/trunk/integration/ant/build.xml
MODIFY /jakarta/cactus/trunk/samples/servlet/src/scripts/share/build.xml
ADD /jakarta/cactus/trunk/integration/ant/src/java/org/apache/cactus/integration/ant/CactusTestTask.java

Felipe Leme added a comment - 22/Jul/05 08:02 AM

> I don't know how to use the -uN option for cvs diff with anonymous account (I cannot cvs add a
> new file before that) :(.

That's one of the biggest mysteries of life :-)

> Perhaps you can tell me how to do this.

To be honest, I don't know neither. I mean, I never figured it out how to do using command line, but you can create such a patch using Eclipse.

> In the patch there no info of the CactusTestTask.java. So maybe you have to help me by adding
> it into the repo.

Hmm, it should be. Anyway, I will add it to the HEAD later tonight (I didn't in this morning because I left it running the tests before I left).

-- Felipe

Felipe Leme added a comment - 22/Jul/05 08:29 AM
Xuan,

I've applied your patch to the HEAD branch, so you can continue your work.

I've also reviewed the code and didn't find where the servers are start - I guess you didn't upload that part yet, right? (notice that I'm not complaining, just curious :-)

I also notice that just the servlet samples were changed - of course, it doesn't make sense to add other samples (like ejb and jetty) until they are not ready, but I'm adding this observation here so we don't forget it later on.

Finally, I haven't applied the fix for the cargo.jar.name hack yet (as I didn't receive it in the mailing list).


-- Felipe

PS: congratulations to Vincent for his new baby - ant let's all hope the CVS code will survive while he is out :-)

Felipe Leme added a comment - 22/Jul/05 08:37 AM
> I've also reviewed the code and didn't find where the servers are start

Nevermind - just now I've realized that job is going to be done by another task (one of the "5 steps tasks")...

Xuan Thang Nguyen added a comment - 05/Aug/05 09:26 PM
This patch is for the HEAD branch to fix following issues:
- Error of containerKey for build with cargo version >=5
- Remove the hard-link cargo version in build-common.xml

Thank you Felipe or anyone who will apply the patch

Regards
Xuan

Xuan Thang Nguyen made changes - 05/Aug/05 09:26 PM
Attachment patch_cargo_containerKeyandVersion.diff [ 12311584 ]
Xuan Thang Nguyen added a comment - 08/Aug/05 11:21 AM
Update for HEAD:
- fix harcoding cargo version
- fix authentication test for servlet to use cargo.servlet.users (not cargo.servlet.security)
- update cactustest tag
- update ejb sample to use cargo

Xuan Thang Nguyen made changes - 08/Aug/05 11:21 AM
Attachment 08-08-05_xnguyen.diff [ 12311625 ]
Xuan Thang Nguyen added a comment - 09/Aug/05 11:07 PM
Patch for HEAD
- Moving maven cactus:test-war to use cargo. Still problem with shutdown container

Xuan Thang Nguyen made changes - 09/Aug/05 11:07 PM
Attachment 09-08-xnguyen.diff [ 12311653 ]
Xuan Thang Nguyen made changes - 10/Aug/05 11:23 PM
Attachment plugin.jelly [ 12311671 ]
Repository Revision Date User Message
ASF #239202 Thu Aug 11 18:48:07 UTC 2005 felipeal CACTUS-151 - another load of Xuan's changes for Cargo integration
Files Changed
MODIFY /jakarta/cactus/trunk/integration/ant/src/java/org/apache/cactus/integration/ant/CactusTask.java
MODIFY /jakarta/cactus/trunk/integration/maven/project.xml
MODIFY /jakarta/cactus/trunk/integration/maven/plugin.jelly
MODIFY /jakarta/cactus/trunk/samples/servlet/src/scripts/share/build.xml
MODIFY /jakarta/cactus/trunk/dependencies.xml.default
MODIFY /jakarta/cactus/trunk/integration/maven/samples/servlet/project.properties
MODIFY /jakarta/cactus/trunk/integration/maven/project.properties
MODIFY /jakarta/cactus/trunk/samples/ejb/src/scripts/share/build.xml
MODIFY /jakarta/cactus/trunk/integration/maven/plugin.properties
MODIFY /jakarta/cactus/trunk/integration/ant/src/java/org/apache/cactus/integration/ant/CactusTestTask.java

Xuan Thang Nguyen added a comment - 11/Aug/05 10:27 PM
Patch for HEAD branch:
- Allow cactus maven to use cargo. Fix stop container by redeclaring the container.

Xuan Thang Nguyen made changes - 11/Aug/05 10:27 PM
Attachment 11-08-05-xnguyen.diff [ 12311695 ]
Felipe Leme added a comment - 12/Aug/05 01:48 AM
Xuan,

Yesterday I applied the 09-08 patch yesterday and got the following error:


/Users/felipeal/cvs/cactus/felipeal/HEAD/samples/ejb/target-13/sample/build.xml:369: org.codehaus.cargo.container.ContainerException: Cannot create configuration. Unknown container id [jboss3x] or unknown hint [standalone]


I guess that's the refid error you mentioned; will try the new patch. BTW, I have already applied the fix to the cargo property, on HEAD and 1.7 branch.

-- Felipe




Felipe Leme added a comment - 12/Aug/05 03:51 AM
Xuan,

I applied your last patch (11_08), but the Maven error still persists:

UILD FAILED
File...... /Users/felipeal/.maven/cache/cactus-maven-1.8dev/plugin.jelly
Element... ant:cargo
Line...... 495
Column.... 76
Cannot create configuration. Unknown container id [jboss3x] or unknown hint [standalone]
Total time: 13 seconds
Finished at: Thu Aug 11 15:48:01 BRT 2005

Did you fix that Jelly issue mentioned on the Cactus/Cargo lists?

Also, I have a newbie Cargo question: for now we would still need to have the containers installed prior to running maven, right? I mean, Cargo should also be able to download the container jars from internet, right? In order words, if I understood it correctly, Cargo would need a higher level of automation, but for now we would just keep the old behaviour, as we are just refactoring Cactus.

-- Felipe

Xuan Thang Nguyen added a comment - 14/Aug/05 03:18 PM
Hi Felipe,
If you have time to check these files again and commit them then you need to add
build.properties into jakarta-cactus/samples/jetty
Jetty4xTestSetup.java into jakarta-cactus/framework/src/java/share-13-14/org/apache/cactus/extension/jetty
Again, I cannot add these from cvs diff :)
Thanks
Xuan

Update for HEAD:
- Update for cactustest Task
- Move org.apache.cactus.extension.jetty.JettyTestSetup to org.apache.cactus.extension.jetty.Jetty4xTestSetup and refactor related classes

Xuan Thang Nguyen made changes - 14/Aug/05 03:18 PM
Attachment Jetty4xTestSetup.java [ 12311737 ]
Attachment build.properties [ 12311736 ]
Attachment 14-08-05_xnguyen [ 12311735 ]
Xuan Thang Nguyen added a comment - 28/Aug/05 07:56 PM
Latest update agaist HEAD.

Xuan Thang Nguyen made changes - 28/Aug/05 07:56 PM
Attachment 28-08-05_xnguyen(final).tgz [ 12312049 ]
Xuan Thang Nguyen added a comment - 28/Aug/05 08:12 PM
I forgot to attach the above two files in previous patch
jakarta-cactus/integration/ant/src/test/org/apache/cactus/integration/ant/TestCactusTestTask.java
akarta-cactus/integration/ant/src/test-input/org/apache/cactus/integration/ant/test-cactustest.xml

Thanks
Xuan

Xuan Thang Nguyen made changes - 28/Aug/05 08:12 PM
Attachment test-cactustest.xml [ 12312051 ]
Attachment TestCactusTestTask.java [ 12312050 ]
Vincent Massol added a comment - 30/Sep/05 09:49 PM
Once we move to Cargo this will be supported OOB as Cargo already supports Tomcat 5.x and 5.5.x

Vincent Massol made changes - 30/Sep/05 09:49 PM
Link This issue incorporates CACTUS-228 [ CACTUS-228 ]
Repository Revision Date User Message
ASF #369230 Sun Jan 15 16:06:15 UTC 2006 felipeal CACTUS-151: merged some suff that was available on the CACTUS_17_CARGO_BRANCH, so we can delete that branch (svn merge -r 239068:HEAD https://svn.apache.org/repos/asf/jakarta/cactus/branches/CACTUS_17_CARGO_BRANCH)
Files Changed
MODIFY /jakarta/cactus/trunk/samples/servlet/src/scripts/share/build.xml
MODIFY /jakarta/cactus/trunk/samples/servlet/build.xml
MODIFY /jakarta/cactus/trunk/build.properties.vmassol

Repository Revision Date User Message
ASF #369232 Sun Jan 15 16:18:10 UTC 2006 felipeal CACTUS-151: removed old branch, as the trunk alreay has Cargo integration
Files Changed
DEL /jakarta/cactus/branches/CACTUS_17_CARGO_BRANCH

Felipe Leme added a comment - 16/Jan/06 01:19 AM
I took some time to play with Cactus SVN code and realized we could get rid of the CACTUS_17_CARGO_BRANCH. Let me explain why..

First, I ran a command on the branch to check when it was created:

[felipeal@disco-stu.local]/Users/felipeal/cvs/cactus/CACTUS_17_CARGO_BRANCH: svn log -v --stop-on-copy
^Csubversion/libsvn_ra_dav/util.c:780: (apr_err=175002)
svn: PROPFIND request failed on '/repos/asf/jakarta/cactus/branches/CACTUS_17_CARGO_BRANCH'
subversion/libsvn_ra_dav/util.c:295: (apr_err=175002)
svn: PROPFIND of '/repos/asf/jakarta/cactus/branches/CACTUS_17_CARGO_BRANCH': SSL negotiation failed: SSL error: (null) (https://svn.apache.org)
[felipeal@disco-stu.local]/Users/felipeal/cvs/cactus/CACTUS_17_CARGO_BRANCH: svn log -v --stop-on-copy project.xml
------------------------------------------------------------------------
r239068 | (no author) | 2004-11-04 23:21:48 -0200 (Thu, 04 Nov 2004) | 2 lines
Changed paths:
   A /jakarta/cactus/branches/CACTUS_17_CARGO_BRANCH (from /jakarta/cactus/trunk:239067)

This commit was manufactured by cvs2svn to create branch
'CACTUS_17_CARGO_BRANCH'.
------------------------------------------------------------------------

So, the branch was created in 2004, on CVS, and imported on revision 239068.

Next, I tried to merge what has changed on the trunk:

[felipeal@disco-stu.local]/Users/felipeal/cvs/cactus/merged_trunk: svn merge -r 239068:HEAD https://svn.apache.org/repos/asf/jakarta/cactus/branches/CACTUS_17_CARGO_BRANCH
U build.xml
C samples/servlet/src/scripts/share/build.xml
C samples/servlet/build.xml
U download.xml
U dependencies.xml.default
U build.properties.vmassol
U build.properties.default

The merge was ok with 6 files (U) but produced 2 conflicts (2). Let's see what have changed:

[felipeal@disco-stu.local]/Users/felipeal/cvs/cactus/merged_trunk: svn st
? samples/servlet/build.xml.merge-left.r239068
? samples/servlet/build.xml.merge-right.r369165
? samples/servlet/build.xml.working
? samples/servlet/src/scripts/share/build.xml.merge-left.r239068
? samples/servlet/src/scripts/share/build.xml.merge-right.r369165
? samples/servlet/src/scripts/share/build.xml.working
C samples/servlet/src/scripts/share/build.xml
C samples/servlet/build.xml
M dependencies.xml.default
M build.properties.vmassol

Let's see the easy part first, the (M)odified files:

[felipeal@disco-stu.local]/Users/felipeal/cvs/cactus/merged_trunk: svn diff build.properties.vmassol dependencies.xml.default
Index: build.properties.vmassol
===================================================================
--- build.properties.vmassol (revision 367110)
+++ build.properties.vmassol (working copy)
@@ -186,6 +186,9 @@
 jsp.12.jar = ${servlet.23.jar}
 jsp.20.jar = ${lib.repo}/${jsp.20.project}/jars/${jsp.20.artifact}-${jsp.20.version}.jar
 
+# The location of the Cargo jar
+cargo.jar = ${lib.repo}/${cargo.project}/jars/${cargo.artifact}-${cargo.version}.jar
+
 # The location of the Commons Logging jar
 commons.logging.jar = ${lib.repo}/${commons.logging.project}/jars/${commons.logging.artifact}-${commons.logging.version}.jar
 
Index: dependencies.xml.default
===================================================================
--- dependencies.xml.default (revision 369123)
+++ dependencies.xml.default (working copy)
@@ -11,6 +11,8 @@
       artifact="aspectjtools" version="1.2.1"/>
   <cargo project="cargo"
       artifact="cargo" version="0.6"/>
+ <cargo project="cargo"
+ artifact="cargo" version="0.4-SNAPSHOT"/>
   <checkstyle project="checkstyle"
       artifact="checkstyle" version="3.4"/>
   <clover project="clover"

So, dependencies.xml.defaul can be reverted (as the branch) is using a more recent version and build.properties.vmassol can be merged.

Next, it was time to analyze the (C)onflcted files on samples/servlet. For the build.xml, most of the conflicts were caused by the location on cargo.jar on both files. After reverting the branch's version and switching a couple of lines, I got a clean merge:

[felipeal@disco-stu.local]/Users/felipeal/cvs/cactus/merged_trunk/samples/servlet: svn merge -r 239068:HEAD https://svn.apache.org/repos/asf/jakarta/cactus/branches/CACTUS_17_CARGO_BRANCH/samples/servlet/build.xml
G build.xml

For the src/scripts/share/build.xml, the changes were tougher, as the syntax of some Cargo tasks apparently changes. So, I manually changed the file and solved most of the conflicts using the trunk's working chunk. Still, a couple of differences remained:

[felipeal@disco-stu.local]/Users/felipeal/cvs/cactus/merged_trunk/samples/servlet: svn diff src/scripts/share/build.xml
Index: src/scripts/share/build.xml
===================================================================
--- src/scripts/share/build.xml (revision 367110)
+++ src/scripts/share/build.xml (working copy)
@@ -104,8 +104,6 @@
       location="../../lib/@cactus.jar.name@"/>
   <property name="cactus.ant.jar"
       location="../../lib/@cactus.ant.jar.name@"/>
- <!-- <property name="cargo.jar"
- location="../../lib/@cargo.jar.name@"/> -->
   <property name="commons.httpclient.jar"
       location="../../lib/@commons.httpclient.jar.name@"/>
   <property name="commons.logging.jar"
@@ -118,7 +116,7 @@
       location="../../lib/@junit.jar.name@"/>
   <property name="nekohtml.jar"
       location="../../lib/@nekohtml.jar.name@"/>
- <property name="cargo.jar"
+ <property name="cargo.jar"
       location="../../lib/@cargo.jar.name@"/>
 
   <!-- This is optional and only needed if you wish to debug and use
@@ -156,6 +154,7 @@
 
     <taskdef resource="cactus.tasks" classpathref="cactus.classpath"/>
     <taskdef resource="cargo.tasks" classpathref="cactus.classpath"/>
+
     <tstamp/>
 
   </target>
@@ -321,8 +320,7 @@
 
   </target>
 
-
-<!-- Start a container -->
+ <!-- Start a container -->
   <macrodef name="start-container">
     <attribute name="containerKey"/>
     <sequential>
@@ -345,7 +343,7 @@
         <!-- Additional jars that will be added to the classpath used to start
              the container -->
         <extraclasspath>
- <!-- pathelement location="${clover.jar}"/ -->
+ <@clover.begin@pathelement location="${clover.jar}"/@clover.end@>
         </extraclasspath>
       </cargo>
     </sequential>
@@ -458,14 +456,14 @@
       description="Run the tests on the defined containers">
 
     <!-- Need to add jboss 3.x once it is supported by Cargo:
- <test-container containerKey="jboss3x"/>-->
+ <@j2ee13.begin@test-container containerKey="jboss3x"/@j2ee13.end@>-->
 
     <test-container containerKey="oc4j9x"/>
     <test-container containerKey="orion1x"/>
     <test-container containerKey="orion2x"/>
     <test-container containerKey="resin2x"/>
     <test-container containerKey="resin3x"/>
- <!-- test-container containerKey="tomcat3x"/ -->
+ <@j2ee12.begin@test-container containerKey="tomcat3x"/@j2ee12.end@>
     <test-container containerKey="tomcat4x"/>
     <test-container containerKey="tomcat5x"/>
     <test-container containerKey="weblogic8x"/>

Anyway, after all changes, I regenerated Cactus 1.8dev and tried to run the servlet samples, but they failed due to a htmlunit issue (see CACTUS-220).

Long story short, I think it's safe to delete the branch:
- as the SVN Book says, you never actually delete anything from the repository, you just remove it from the HEAD
- if we keep the branch, people could accidentaly check code against it.

So, here are the revisions affected on the process:

trunk and branches before changes: 369227
after applying changes on trunk: 369230
before removing the branch: 369231 (the ids are global, so someone at ASF committed something else in between)
after removing the branch: 369232

-- Felipe
 






Repository Revision Date User Message
ASF #394252 Sat Apr 15 04:20:17 UTC 2006 felipeal CACTUS-151: updated Cargo dependency to release 0.8
Files Changed
MODIFY /jakarta/cactus/trunk/.classpath
MODIFY /jakarta/cactus/trunk/integration/maven/project.xml
MODIFY /jakarta/cactus/trunk/download.xml
DEL /jakarta/cactus/trunk/framework/src/test/eclipse/org/apache/cactus/TestAllOnEclipse.java
MODIFY /jakarta/cactus/trunk/integration/ant/src/java/org/apache/cactus/integration/ant/CactifyWarTask.java
MODIFY /jakarta/cactus/trunk/integration/ant/src/java/org/apache/cactus/integration/ant/WebXmlMergeTask.java
ADD /jakarta/cactus/trunk/framework/src/test/eclipse/org/apache/cactus/EclipseTestAll.java
MODIFY /jakarta/cactus/trunk/integration/ant/src/java/org/apache/cactus/integration/ant/CactifyEarTask.java
MODIFY /jakarta/cactus/trunk/dependencies.xml.default
MODIFY /jakarta/cactus/trunk/build.properties.default
DEL /jakarta/cactus/trunk/integration/ant/src/test/org/apache/cactus/integration/ant/TestAllOnEclipse.java
ADD /jakarta/cactus/trunk/integration/ant/src/test/org/apache/cactus/integration/ant/EclipseTestAll.java (from /jakarta/cactus/trunk/integration/ant/src/test/org/apache/cactus/integration/ant/TestAllOnEclipse.java)

Repository Revision Date User Message
ASF #394294 Sat Apr 15 14:26:35 UTC 2006 felipeal CACTUS-151: added cargo-ant jar on classpathes
Files Changed
MODIFY /jakarta/cactus/trunk/download.xml
MODIFY /jakarta/cactus/trunk/samples/servlet/src/scripts/share/build.xml
MODIFY /jakarta/cactus/trunk/build.xml
MODIFY /jakarta/cactus/trunk/samples/servlet/build.xml
MODIFY /jakarta/cactus/trunk/dependencies.xml.default
MODIFY /jakarta/cactus/trunk/samples/jetty/src/script/build.xml
MODIFY /jakarta/cactus/trunk/build.properties.default
MODIFY /jakarta/cactus/trunk/samples/ejb/src/scripts/share/build.xml

Repository Revision Date User Message
ASF #394301 Sat Apr 15 15:07:26 UTC 2006 felipeal CACTUS-151: applied Xuan's final patches; see links below:
  http://issues.apache.org/jira/secure/attachment/12312049/28-08-05_xnguyen(final).tgz
  http://issues.apache.org/jira/secure/attachment/12312050/TestCactusTestTask.java
  http://issues.apache.org/jira/secure/attachment/12312051/test-cactustest.xml
  http://issues.apache.org/jira/browse/CACTUS-151#action_12320346
  http://issues.apache.org/jira/browse/CACTUS-151#action_12320347
Files Changed
MODIFY /jakarta/cactus/trunk/integration/ant/build.xml
ADD /jakarta/cactus/trunk/integration/ant/src/test-input/org/apache/cactus/integration/ant/test-cactustest.xml
ADD /jakarta/cactus/trunk/integration/ant/src/java/org/apache/cactus/integration/ant/util/HttpProbe.java
ADD /jakarta/cactus/trunk/integration/ant/src/test/org/apache/cactus/integration/ant/TestCactusTestTask.java
MODIFY /jakarta/cactus/trunk/integration/ant/src/test/org/apache/cactus/integration/ant/TestAll.java
MODIFY /jakarta/cactus/trunk/integration/ant/src/java/org/apache/cactus/integration/ant/CactusTestTask.java

Repository Revision Date User Message
ASF #394330 Sat Apr 15 16:53:21 UTC 2006 felipeal CACTUS-151: fixed mispelled class, add cargo.ant on samples and commit other Xuan's patches (that weren't included in last commit)
Files Changed
MODIFY /jakarta/cactus/trunk/integration/ant/build.xml
MODIFY /jakarta/cactus/trunk/integration/maven/plugin.jelly
MODIFY /jakarta/cactus/trunk/samples/servlet/build.xml
MODIFY /jakarta/cactus/trunk/documentation/docs/xdocs/integration/ant/task_runservertests.xml
MODIFY /jakarta/cactus/trunk/documentation/docs/xdocs/integration/ant/navigation.xml
MODIFY /jakarta/cactus/trunk/samples/ejb/build.xml
MODIFY /jakarta/cactus/trunk/documentation/docs/xdocs/integration/ant/index.xml
MODIFY /jakarta/cactus/trunk/documentation/docs/xdocs/integration/ant/howto_ant_cactus.xml
MODIFY /jakarta/cactus/trunk/documentation/docs/xdocs/participating/contributors.xml

Repository Revision Date User Message
ASF #394406 Sun Apr 16 00:26:20 UTC 2006 felipeal CACTUS-151: this file was submitted on Xuan's patch, but I forgot to include it earlier
Files Changed
ADD /jakarta/cactus/trunk/framework/src/java/share-13-14/org/apache/cactus/extension/jetty/Jetty4xTestSetup.java

Repository Revision Date User Message
ASF #394831 Tue Apr 18 03:44:48 UTC 2006 felipeal CACTUS-151: fixed use of Cargo Ant task, added htmlunit dependency and updated documentation
Files Changed
MODIFY /jakarta/cactus/trunk/documentation/docs/xdocs/integration/ant/task_cactus.xml
MODIFY /jakarta/cactus/trunk/samples/servlet/src/scripts/share/build.xml
MODIFY /jakarta/cactus/trunk/samples/jetty/src/script/build.xml
MODIFY /jakarta/cactus/trunk/documentation/docs/xdocs/integration/ant/navigation.xml
MODIFY /jakarta/cactus/trunk/samples/ejb/src/scripts/share/build.xml
MODIFY /jakarta/cactus/trunk/documentation/docs/xdocs/integration/ant/index.xml

Repository Revision Date User Message
ASF #396356 Mon Apr 24 00:37:20 UTC 2006 felipeal CACTUS-151: updated cargo dependencies for Cactus
Files Changed
MODIFY /gump/metadata/project/portals-jetspeed-1.xml
MODIFY /gump/metadata/project/jakarta-cactus.xml
MODIFY /gump/metadata/project/packaged-cargo.xml

Petar Tahchiev added a comment - 02/Mar/08 10:09 PM
Already implemented in the svn HEAD. I am closing this issue.

Petar Tahchiev made changes - 02/Mar/08 10:09 PM
Resolution Fixed [ 1 ]
Assignee Xuan Thang Nguyen [ xnguyen ] Petar Tahchiev [ paranoiabla ]
Status In Progress [ 3 ] Resolved [ 5 ]
Petar Tahchiev made changes - 11/Apr/08 12:35 PM
Status Resolved [ 5 ] Closed [ 6 ]