You are viewing a plain text version of this content. The canonical link for it is here.
Posted to library-dev@jakarta.apache.org by Sam Ruby <ru...@us.ibm.com> on 2001/02/25 12:33:35 UTC

Re: [POLL] General Consensus, Round 2 - J2EEUnit

I had J2EEUnit clean compiling with gump, then another external dependency
was added.  Vincent, t is not clear to me that you have permision to
distribute Resin code, and this will have to be resolved before any
proposal to donate J2EEUnit to the ASF could be considered.  (I won't begin
to comment on intermixing GPL and Caucho Developer Source Licenced code).

The normal way to handle this is to make such dependencies optional.
Following are the patches required to your build definition to make this
happen.

- Sam Ruby

Index: build.xml
===================================================================
RCS file: /cvsroot/j2eeunit/j2eeunit/build/build.xml,v
retrieving revision 1.20
diff -u -r1.20 build.xml
--- build.xml  2001/02/24 22:52:59 1.20
+++ build.xml  2001/02/25 11:42:10
@@ -88,6 +88,9 @@
         <property name="optimize" value="off"/>
         <property name="deprecation" value="off"/>

+        <!-- Determine availability of optional packages -->
+        <available property="resin.present" classname="com.caucho.server.http.ResinServer" />
+
         <!-- Filters -->
         <filter token="version" value="${version}"/>
         <filter token="year" value="${year}"/>
@@ -251,6 +254,9 @@

             <!-- Misc files -->
             <exclude name="**/license.gpl"/>
+
+            <!-- Optional files -->
+            <exclude name="**/ResinRun.java" unless="resin.present"/>

             <classpath>
                 <path>


Integration of J2EEUnit with Gump

Posted by Vincent Massol <vm...@octo.fr>.
Sam,

I have added build\build-test-all.bat and build\build-test-all.xml to
automatically run the J2EEUnit on all servlet engines and for all servlet
APIs. If the environment variable pointing to the home directory of a given
servlet engine is not found, then the tests for that servlet engine are
skipped. If you could include that in the gump config. that would be nice.

Note 1 : I still have to finish an Ant listener so that it is easy to get
the results from these automatic tests (reading through all the logs is a
pain !)
Note 2 : I don't know yet how to automatically stop Orion, so I have not
included it in the automatic tests
Note 3 : I don't know why, but my scripts to start Tomcat 4.0 stopped
working ... I am still checking this ...

Note 4 : I have moved this discussion to struts-dev as I don't think it
belongs to library-dev !

Thanks.
Vincent

----- Original Message -----
From: "Sam Ruby" <ru...@us.ibm.com>
To: <li...@jakarta.apache.org>
Sent: Sunday, February 25, 2001 1:33 PM
Subject: Re: [POLL] General Consensus, Round 2 - J2EEUnit


> I had J2EEUnit clean compiling with gump, then another external dependency
> was added.  Vincent, t is not clear to me that you have permision to
> distribute Resin code, and this will have to be resolved before any
> proposal to donate J2EEUnit to the ASF could be considered.  (I won't
begin
> to comment on intermixing GPL and Caucho Developer Source Licenced code).
>
> The normal way to handle this is to make such dependencies optional.
> Following are the patches required to your build definition to make this
> happen.
>
> - Sam Ruby
>
> Index: build.xml
> ===================================================================
> RCS file: /cvsroot/j2eeunit/j2eeunit/build/build.xml,v
> retrieving revision 1.20
> diff -u -r1.20 build.xml
> --- build.xml  2001/02/24 22:52:59 1.20
> +++ build.xml  2001/02/25 11:42:10
> @@ -88,6 +88,9 @@
>          <property name="optimize" value="off"/>
>          <property name="deprecation" value="off"/>
>
> +        <!-- Determine availability of optional packages -->
> +        <available property="resin.present"
classname="com.caucho.server.http.ResinServer" />
> +
>          <!-- Filters -->
>          <filter token="version" value="${version}"/>
>          <filter token="year" value="${year}"/>
> @@ -251,6 +254,9 @@
>
>              <!-- Misc files -->
>              <exclude name="**/license.gpl"/>
> +
> +            <!-- Optional files -->
> +            <exclude name="**/ResinRun.java" unless="resin.present"/>
>
>              <classpath>
>                  <path>
>
>
>


Re: [POLL] General Consensus, Round 2 - J2EEUnit

Posted by Vincent Massol <vm...@octo.fr>.
----- Original Message -----
From: "Sam Ruby" <ru...@us.ibm.com>
To: <li...@jakarta.apache.org>
Sent: Sunday, February 25, 2001 1:33 PM
Subject: Re: [POLL] General Consensus, Round 2 - J2EEUnit


> I had J2EEUnit clean compiling with gump, then another external dependency

Geeze .... you're fast ...
I am writing a new build-test-all.xml Ant file that starts all the tests for
all servlet engine. I'll have it in CVS in about 2-3 hours I guess. I'll
make some other modifications to the batch files to support this.

> was added.  Vincent, t is not clear to me that you have permision to
> distribute Resin code, and this will have to be resolved before any
> proposal to donate J2EEUnit to the ASF could be considered.  (I won't
begin
> to comment on intermixing GPL and Caucho Developer Source Licenced code).
>

Do you mean for the resinBootstrap.jar ? I have added this yesterday because
there is way to stop Resin. So I wrote some java code that start Resin
(using an internal class : RunResin) create a server socket listener and
stops the Resin when someone connects to this socket. However, I wanted to
be able to compile this little piece of java code without needing the Resin
server to be installed (that's why I put 2 resin classes in this bootstrap
jar). It is only used when you run the Resin tests, for which you need
Resin. What I can do, is move the compilation of this code as a dependency
of the Resin tests (which it is). This will remove the resinBoostrap.jar
file. Ok, I'll do that right now. Ready in about 2-3 hours in CVS ...

> The normal way to handle this is to make such dependencies optional.
> Following are the patches required to your build definition to make this
> happen.
>
Thanks.

> - Sam Ruby
>

Vincent.


Re: [POLL] General Consensus, Round 2 - J2EEUnit

Posted by Vincent Massol <vm...@octo.fr>.
----- Original Message -----
From: "Sam Ruby" <ru...@us.ibm.com>
To: <li...@jakarta.apache.org>
Sent: Sunday, February 25, 2001 1:33 PM
Subject: Re: [POLL] General Consensus, Round 2 - J2EEUnit


> I had J2EEUnit clean compiling with gump, then another external dependency

Geeze .... you're fast ...
I am writing a new build-test-all.xml Ant file that starts all the tests for
all servlet engine. I'll have it in CVS in about 2-3 hours I guess. I'll
make some other modifications to the batch files to support this.

> was added.  Vincent, t is not clear to me that you have permision to
> distribute Resin code, and this will have to be resolved before any
> proposal to donate J2EEUnit to the ASF could be considered.  (I won't
begin
> to comment on intermixing GPL and Caucho Developer Source Licenced code).
>

Do you mean for the resinBootstrap.jar ? I have added this yesterday because
there is way to stop Resin. So I wrote some java code that start Resin
(using an internal class : RunResin) create a server socket listener and
stops the Resin when someone connects to this socket. However, I wanted to
be able to compile this little piece of java code without needing the Resin
server to be installed (that's why I put 2 resin classes in this bootstrap
jar). It is only used when you run the Resin tests, for which you need
Resin. What I can do, is move the compilation of this code as a dependency
of the Resin tests (which it is). This will remove the resinBoostrap.jar
file. Ok, I'll do that right now. Ready in about 2-3 hours in CVS ...

> The normal way to handle this is to make such dependencies optional.
> Following are the patches required to your build definition to make this
> happen.
>
Thanks.

> - Sam Ruby
>

Vincent.