You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@apache.org on 2004/03/01 13:39:33 UTC
cvs commit: jakarta-commons/jelly/jelly-tags/threads/src/java/org/apache/commons/jelly/tags/threads Mutex.java
dion 2004/03/01 04:39:33
Modified: jelly/jelly-tags/threads/src/test/org/apache/commons/jelly/threads
group1.jelly wait1.jelly basic.jelly wait2.jelly
wait4.jelly suite.jelly sync.jelly wait3.jelly
jelly/jelly-tags/threads project.properties maven.xml
build.xml project.xml
jelly/jelly-tags/threads/src/java/org/apache/commons/jelly/tags/threads
Mutex.java
Log:
ASL v2
Revision Changes Path
1.2 +15 -0 jakarta-commons/jelly/jelly-tags/threads/src/test/org/apache/commons/jelly/threads/group1.jelly
Index: group1.jelly
===================================================================
RCS file: /home/cvs/jakarta-commons/jelly/jelly-tags/threads/src/test/org/apache/commons/jelly/threads/group1.jelly,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- group1.jelly 30 Oct 2002 19:13:01 -0000 1.1
+++ group1.jelly 1 Mar 2004 12:39:33 -0000 1.2
@@ -1,4 +1,19 @@
<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<!--
Basic thread group example.
1.2 +15 -0 jakarta-commons/jelly/jelly-tags/threads/src/test/org/apache/commons/jelly/threads/wait1.jelly
Index: wait1.jelly
===================================================================
RCS file: /home/cvs/jakarta-commons/jelly/jelly-tags/threads/src/test/org/apache/commons/jelly/threads/wait1.jelly,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- wait1.jelly 30 Oct 2002 19:13:01 -0000 1.1
+++ wait1.jelly 1 Mar 2004 12:39:33 -0000 1.2
@@ -1,4 +1,19 @@
<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<!--
This test shows coordinating between 2 threads using
1.2 +15 -0 jakarta-commons/jelly/jelly-tags/threads/src/test/org/apache/commons/jelly/threads/basic.jelly
Index: basic.jelly
===================================================================
RCS file: /home/cvs/jakarta-commons/jelly/jelly-tags/threads/src/test/org/apache/commons/jelly/threads/basic.jelly,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- basic.jelly 30 Oct 2002 19:13:01 -0000 1.1
+++ basic.jelly 1 Mar 2004 12:39:33 -0000 1.2
@@ -1,4 +1,19 @@
<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<!--
Basic example. Should print the numbers in reverse.
1.2 +15 -0 jakarta-commons/jelly/jelly-tags/threads/src/test/org/apache/commons/jelly/threads/wait2.jelly
Index: wait2.jelly
===================================================================
RCS file: /home/cvs/jakarta-commons/jelly/jelly-tags/threads/src/test/org/apache/commons/jelly/threads/wait2.jelly,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- wait2.jelly 30 Oct 2002 19:13:01 -0000 1.1
+++ wait2.jelly 1 Mar 2004 12:39:33 -0000 1.2
@@ -1,4 +1,19 @@
<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<!--
This test shows coordinating between 2 threads using
1.3 +15 -0 jakarta-commons/jelly/jelly-tags/threads/src/test/org/apache/commons/jelly/threads/wait4.jelly
Index: wait4.jelly
===================================================================
RCS file: /home/cvs/jakarta-commons/jelly/jelly-tags/threads/src/test/org/apache/commons/jelly/threads/wait4.jelly,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- wait4.jelly 11 Jan 2003 22:25:02 -0000 1.2
+++ wait4.jelly 1 Mar 2004 12:39:33 -0000 1.3
@@ -1,4 +1,19 @@
<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<!--
This test shows the waitFor tag waiting for multiple threads.
1.3 +15 -0 jakarta-commons/jelly/jelly-tags/threads/src/test/org/apache/commons/jelly/threads/suite.jelly
Index: suite.jelly
===================================================================
RCS file: /home/cvs/jakarta-commons/jelly/jelly-tags/threads/src/test/org/apache/commons/jelly/threads/suite.jelly,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- suite.jelly 11 Jan 2003 22:25:02 -0000 1.2
+++ suite.jelly 1 Mar 2004 12:39:33 -0000 1.3
@@ -1,4 +1,19 @@
<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<test:suite xmlns="jelly:core" xmlns:test="jelly:junit" xmlns:threads="jelly:threads">
<test:case name="testBasic">
<set var="result" value=""/>
1.2 +15 -0 jakarta-commons/jelly/jelly-tags/threads/src/test/org/apache/commons/jelly/threads/sync.jelly
Index: sync.jelly
===================================================================
RCS file: /home/cvs/jakarta-commons/jelly/jelly-tags/threads/src/test/org/apache/commons/jelly/threads/sync.jelly,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sync.jelly 30 Oct 2002 19:13:01 -0000 1.1
+++ sync.jelly 1 Mar 2004 12:39:33 -0000 1.2
@@ -1,4 +1,19 @@
<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<!--
This example shows coordinating between 2 threads using
1.2 +15 -0 jakarta-commons/jelly/jelly-tags/threads/src/test/org/apache/commons/jelly/threads/wait3.jelly
Index: wait3.jelly
===================================================================
RCS file: /home/cvs/jakarta-commons/jelly/jelly-tags/threads/src/test/org/apache/commons/jelly/threads/wait3.jelly,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- wait3.jelly 30 Oct 2002 19:13:01 -0000 1.1
+++ wait3.jelly 1 Mar 2004 12:39:33 -0000 1.2
@@ -1,4 +1,19 @@
<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<!--
This test shows how the waitFor tag works.
1.3 +15 -0 jakarta-commons/jelly/jelly-tags/threads/project.properties
Index: project.properties
===================================================================
RCS file: /home/cvs/jakarta-commons/jelly/jelly-tags/threads/project.properties,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- project.properties 10 Feb 2003 06:30:24 -0000 1.2
+++ project.properties 1 Mar 2004 12:39:33 -0000 1.3
@@ -1,3 +1,18 @@
+
+# Copyright 2002-2004 The Apache Software Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
# -------------------------------------------------------------------
# P R O J E C T P R O P E R T I E S
# -------------------------------------------------------------------
1.2 +16 -0 jakarta-commons/jelly/jelly-tags/threads/maven.xml
Index: maven.xml
===================================================================
RCS file: /home/cvs/jakarta-commons/jelly/jelly-tags/threads/maven.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- maven.xml 15 Jan 2003 05:47:15 -0000 1.1
+++ maven.xml 1 Mar 2004 12:39:33 -0000 1.2
@@ -1,3 +1,19 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<project default="java:jar">
</project>
1.3 +15 -0 jakarta-commons/jelly/jelly-tags/threads/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-commons/jelly/jelly-tags/threads/build.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- build.xml 23 Jan 2003 01:39:59 -0000 1.2
+++ build.xml 1 Mar 2004 12:39:33 -0000 1.3
@@ -1,4 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<project default="jar" name="commons-jelly-tags-threads" basedir=".">
<property name="defaulttargetdir" value="target">
1.7 +15 -0 jakarta-commons/jelly/jelly-tags/threads/project.xml
Index: project.xml
===================================================================
RCS file: /home/cvs/jakarta-commons/jelly/jelly-tags/threads/project.xml,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- project.xml 25 Dec 2003 21:58:39 -0000 1.6
+++ project.xml 1 Mar 2004 12:39:33 -0000 1.7
@@ -1,4 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<project>
<extend>${basedir}/../tag-project.xml</extend>
<id>commons-jelly-tags-threads</id>
1.2 +15 -0 jakarta-commons/jelly/jelly-tags/threads/src/java/org/apache/commons/jelly/tags/threads/Mutex.java
Index: Mutex.java
===================================================================
RCS file: /home/cvs/jakarta-commons/jelly/jelly-tags/threads/src/java/org/apache/commons/jelly/tags/threads/Mutex.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Mutex.java 30 Oct 2002 19:13:01 -0000 1.1
+++ Mutex.java 1 Mar 2004 12:39:33 -0000 1.2
@@ -1,4 +1,19 @@
/*
+ * Copyright 2002-2004 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/*
File: Mutex.java
Originally written by Doug Lea and released into the public domain.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org