You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(66) |
Aug
(61) |
Sep
|
Oct
|
Nov
|
Dec
|
---|
From: Pieter v. Z. <pv...@us...> - 2005-08-02 07:47:50
|
Update of /cvsroot/coefficient/coefficient In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3553 Modified Files: modules-common.ent Log Message: added compiling of test classes and creation of test jar file for each module Index: modules-common.ent =================================================================== RCS file: /cvsroot/coefficient/coefficient/modules-common.ent,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** modules-common.ent 18 Jul 2005 14:32:42 -0000 1.18 --- modules-common.ent 2 Aug 2005 07:47:41 -0000 1.19 *************** *** 28,31 **** --- 28,35 ---- <property name="release.src.file" value="${project.name}-src-${version}" /> <property name="release.jar.file" value="${project.name}-jar-${version}" /> + <property name="src.test.dir" value="src-test" /> + <property name="test.classes.dir" value="${build.dest}/test-classes" /> + <property name="test.jar.file" value="${project.name}-test.jar" /> + <taskdef *************** *** 66,70 **** </path> ! <!-- =================================================================== --> --- 70,89 ---- </path> ! ! <!-- =================================================================== --> ! <!-- TEST B U I L D C L A S S P A T H --> ! <!-- =================================================================== --> ! <path id="classpath-current-module"> ! <fileset dir="${lib.dir}"> ! <include name="**/*.jar"/> ! </fileset> ! <fileset dir="${module.lib.dir}"> ! <include name="**/*.jar"/> ! </fileset> ! <!--need to specify the dir with the classes so fileset and dirset cannot be used in the classpath:--> ! <pathelement location="${classes.dir}"/> ! <pathelement location="${coefficient.path}/${classes.dir}"/> ! <pathelement location="${coefficient.path}/build/test-classes"/> ! </path> <!-- =================================================================== --> *************** *** 146,149 **** --- 165,180 ---- </target> + <!-- =================================================================== --> + <!-- C O M P I L E TESTS --> + <!-- =================================================================== --> + <target name="compile-tests" description="compiling tests" depends="compile"> + <iajc destdir="${test.classes.dir}"> + <sourceroots> + <pathelement location="${src.test.dir}" /> + </sourceroots> + <classpath refid="classpath-current-module" /> + </iajc> + </target> + <!-- =================================================================== --> *************** *** 287,290 **** --- 318,335 ---- </jar> </target> + + <!-- =================================================================== --> + <!-- M A K E TEST J A R F I L E --> + <!-- =================================================================== --> + <target name="test-jar" depends="compile-tests" description="Make test jar file" > + <delete> + <fileset dir="${distribution.dir}"> + <include name="**/${test.jar.file}"/> + </fileset> + </delete> + <jar destfile="${distribution.dir}/${test.jar.file}" > + <fileset dir="${test.classes.dir}" /> + </jar> + </target> <!-- =================================================================== --> |
From: Pieter v. Z. <pv...@us...> - 2005-08-02 07:46:14
|
Update of /cvsroot/coefficient/coefficient In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3156 Modified Files: build.xml Log Message: added compiling of test classes and creation of test jar file Index: build.xml =================================================================== RCS file: /cvsroot/coefficient/coefficient/build.xml,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** build.xml 1 Aug 2005 09:39:31 -0000 1.36 --- build.xml 2 Aug 2005 07:46:04 -0000 1.37 *************** *** 8,15 **** <property name="dir.jalopy" value="jalopyLib" /> <!--<property name="ear.file" value="${project.name}-${version}.ear" />--> ! <!--condition property="ear.file" value="${ear.prefix}_${project.name}-${version}.ear" else="${project.name}-${version}.ear"> ! <isset property="ear.prefix"/> ! </condition--> ! <property name ="ear.file" value="${project.name}-${version}.ear"/> <property name="ejb.jar.file" value="${project.name}-ejb.jar" /> <property name="war.file" value="${project.name}.war" /> --- 8,14 ---- <property name="dir.jalopy" value="jalopyLib" /> <!--<property name="ear.file" value="${project.name}-${version}.ear" />--> ! <condition property="ear.file" value="${ear.prefix}_${project.name}-${version}.ear" else="${project.name}-${version}.ear"> ! <isset property="ear.prefix"/> ! </condition> <property name="ejb.jar.file" value="${project.name}-ejb.jar" /> <property name="war.file" value="${project.name}.war" /> *************** *** 33,37 **** <property name="coefficient.core.src.release.file" value="coefficient-core-src-${version}" /> <property name="src.test.dir" value="src-test" /> ! <taskdef resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties"> --- 32,40 ---- <property name="coefficient.core.src.release.file" value="coefficient-core-src-${version}" /> <property name="src.test.dir" value="src-test" /> ! <property name="src.test.misc" value="${src.test.dir}/misc" /> ! <property name="test.classes.dir" value="${build.dest}/test-classes" /> ! <property name="test.jar.file" value="${project.name}-test.jar" /> ! ! <taskdef resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties"> *************** *** 89,92 **** --- 92,109 ---- </path> + <!-- =================================================================== --> + <!-- TEST B U I L D C L A S S P A T H --> + <!-- =================================================================== --> + <path id="classpath-coefficient"> + <fileset dir="${lib.dir}"> + <include name="**/*.jar" /> + </fileset> + <!--need to specify the dir with the classes so fileset and dirset cannot be used in the classpath:--> + <pathelement location="${classes.dir}"/> + <!--fileset dir="${distribution.dir}"> + <include name="**/*.jar" /> + </fileset--> + </path> + <!-- ==================================================================== --> <!-- Defines the Jalopy task --> *************** *** 141,144 **** --- 158,162 ---- <mkdir dir="${gen.src}" /> <mkdir dir="${gen.misc}" /> + <mkdir dir="${test.classes.dir}" /> </target> *************** *** 158,162 **** <pathelement location="${src.dir}" /> <pathelement location="${gen.src}" /> - <pathelement location="${src.test.dir}" /> </sourceroots> --- 176,179 ---- *************** *** 164,172 **** </iajc> </target> <!-- =================================================================== --> <!-- C O M P I L E W E B A P P --> <!-- =================================================================== --> ! <target name="compile-webapp" description="compiling..." depends="directories"> <!-- this is horrible and should be removed if we can find a way --> --- 181,202 ---- </iajc> </target> + + <!-- =================================================================== --> + <!-- C O M P I L E TESTS --> + <!-- =================================================================== --> + <target name="compile-tests" description="compiling tests" depends="directories, compile"> + <iajc destdir="${test.classes.dir}"> + <sourceroots> + <pathelement location="${src.test.dir}" /> + </sourceroots> + <classpath refid="classpath-coefficient" /> + </iajc> + </target> + <!-- =================================================================== --> <!-- C O M P I L E W E B A P P --> <!-- =================================================================== --> ! <target name="compile-webapp" description="compiling webapp" depends="directories"> <!-- this is horrible and should be removed if we can find a way --> *************** *** 471,474 **** --- 501,523 ---- </jar> </target> + <!-- =================================================================== --> + <!-- M A K E TEST J A R F I L E --> + <!-- =================================================================== --> + <target name="test-jar" depends="compile-tests" description="Make test jar file" > + <delete> + <fileset dir="${distribution.dir}"> + <include name="**/${test.jar.file}"/> + </fileset> + </delete> + <jar destfile="${distribution.dir}/${test.jar.file}" > + <fileset dir="${src.test.misc}"> + <include name="hibernate.properties" /> + <include name="hibernate_util.properties" /> + <include name="coefficient.properties" /> + <include name="invoker.properties" /> + </fileset> + <fileset dir="${test.classes.dir}" /> + </jar> + </target> |
From: Pieter v. Z. <pv...@us...> - 2005-08-02 07:13:49
|
Update of /cvsroot/coefficient/mailForum/src-test/za/org/coefficient/modules/mailforum In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30917/modules/mailForum/src-test/za/org/coefficient/modules/mailforum Added Files: MailForumTest.java Log Message: Test case to test the number of forums. Setup's a project, user and member. Currently there is no forums and should return -1. Uses the modules like UserAdmin --- NEW FILE: MailForumTest.java --- /** * */ package za.org.coefficient.modules.mailforum; import java.util.HashMap; import java.util.List; import java.util.Locale; import java.util.Map; import java.util.TimeZone; import net.sf.hibernate.HibernateException; import net.sf.hibernate.util.HibernateUtil; import za.org.coefficient.authentication.Role; import za.org.coefficient.core.Project; import za.org.coefficient.interfaces.CoefficientContext; import za.org.coefficient.testing.CoefficientTestCase; import za.org.coefficient.testing.CoefficientTestingContext; import za.org.coefficient.testing.TestDBSetup; /** * @author pieter20 Jul 19, 2005 * */ public class MailForumTest extends CoefficientTestCase { private TestDBSetup testDbSchema = null; /** * Jul 19, 2005 * * @author pieter20 */ public MailForumTest(String name) { super(name); } private void listAllProjects() { try { List list = HibernateUtil.findAll(Project.class); System.out .println("MailForumsTest.testListForums()->list size od project list:" + list.size()); list = HibernateUtil.findAll(Role.class); System.out .println("MailForumsTest.testListForums()->list size of all roles in db:" + list.size()); } catch (HibernateException e) { System.err .println("MailForumsTest.testListForums()->Could not retrieve any projects" + e); } }// end listAllProjects() /** * @author pieter20 Jul 31, 2005 Setup the default db */ public void setupTestDb() { // setup the default test db. testDbSchema = new TestDBSetup(); } /** * @author pieter20 Jul 31, 2005 Create's a project that will be used * throughout the test * @return object of type Project */ private Project createProject() { Project project = testDbSchema.setupDefaultProject(); try { HibernateUtil.saveOrUpdate(project); } catch (HibernateException e) { System.err .println("MailForumsTest.testListForums()->Project not saved" + e); } assertNotNull(project); return project; } /** * @author pieter20 Jul 31, 2005 Create a user for this test * @param requestMap * @param ctx * @param project */ private void createUser(Map requestMap, CoefficientContext ctx, Project project) { // set user // this could be done by calling the module UserAdmin requestMap.put("fullName", "Pieter van Zyl"); requestMap.put("email", "pv...@cs..."); requestMap.put("password1", "green"); requestMap.put("userName", "pvzyl"); requestMap.put("language", Locale.US); requestMap.put("timeZone", TimeZone.getDefault()); requestMap.put("active", new Boolean(true)); // Note: systemRole can not be populated using the BeanUtils. // We do not cater for the Role object in: // BaseCoefficientContext.setProperties(.. requestMap.put("module", "UserAdmin"); requestMap.put("op", "saveUser"); requestMap.put("password1", "green"); ctx = new CoefficientTestingContext(new HashMap(), requestMap, new HashMap()); ctx.setProject(project); Object result = null; // call method: try { result = invokeOpOnModule(ctx); } catch (Exception e) { System.err.println(e); } // checks if the user has been created assertNotNull(result); }// end createUser /** * @author pieter20 Jul 31, 2005 Associate a user with a project. The user * is specified as a parameter in the requestMap. * @param requestMap * @param ctx * @param project */ private void addUserToProject(Map requestMap, CoefficientContext ctx, Project project) { // associate member/user with project. Use MemberAdmin module's method: // addMember requestMap.put("module", "MemberAdmin"); requestMap.put("op", "addMember"); ctx = new CoefficientTestingContext(new HashMap(), requestMap, new HashMap()); ctx.setProject(project); Object result = null; // call method: try { result = invokeOpOnModule(ctx); } catch (Exception e) { System.err.println(e); } // checks if the user/member has been associated with this project: assertNotNull(result); }// end addUserToProject() /** * @author pieter20 Jul 19, 2005 * Test to see if the Forum lists the correct amount of forums */ public void testListForums() { // setup the default test db. setupTestDb(); // creates a default project without going through the project module. Project testProject = createProject(); listAllProjects(); Map requestMap = new HashMap(); CoefficientTestingContext ctx = null; createUser(requestMap, ctx, testProject); // associate member/user with project. Use MemberAdmin module's method: // addMember: addUserToProject(requestMap, ctx, testProject); // add all parameters that are need into the context map // add class=MailForum op=forumList requestMap.put("module", "MailForum"); requestMap.put("op", "forumList"); ctx = new CoefficientTestingContext(new HashMap(), requestMap, new HashMap()); ctx.setProject(testProject); Object result = null; // call method: try { result = invokeOpOnModule(ctx); } catch (Exception e) { System.err.println(e); } // the list should be empty and not null: assertNotNull(result); if (result instanceof CoefficientTestingContext) { ctx = (CoefficientTestingContext) result; try { int exist = ctx.getPage().getCenter().indexOf("forumid"); System.out .println("MailForumsTest.testListForums()-> contains forum: " + exist); } catch (Exception e) { e.printStackTrace(); } } else { System.out .println("MailForumTest.testListForums()->We are only interested in CoefficientTestingContext objects!!!!"); } } } |
From: Pieter v. Z. <pv...@us...> - 2005-08-02 06:47:43
|
Update of /cvsroot/coefficient/mailForum/src-test/za In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27589/modules/mailForum/src-test/za Log Message: Directory /cvsroot/coefficient/mailForum/src-test/za added to the repository |
From: Pieter v. Z. <pv...@us...> - 2005-08-02 06:47:38
|
Update of /cvsroot/coefficient/mailForum/src-test/za/org/coefficient/modules/mailforum In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27589/modules/mailForum/src-test/za/org/coefficient/modules/mailforum Log Message: Directory /cvsroot/coefficient/mailForum/src-test/za/org/coefficient/modules/mailforum added to the repository |
From: Pieter v. Z. <pv...@us...> - 2005-08-02 06:47:38
|
Update of /cvsroot/coefficient/mailForum/src-test/za/org/coefficient/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27589/modules/mailForum/src-test/za/org/coefficient/modules Log Message: Directory /cvsroot/coefficient/mailForum/src-test/za/org/coefficient/modules added to the repository |
From: Pieter v. Z. <pv...@us...> - 2005-08-02 06:47:37
|
Update of /cvsroot/coefficient/mailForum/src-test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27589/modules/mailForum/src-test Log Message: Directory /cvsroot/coefficient/mailForum/src-test added to the repository |
From: Pieter v. Z. <pv...@us...> - 2005-08-02 06:47:37
|
Update of /cvsroot/coefficient/mailForum/src-test/za/org In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27589/modules/mailForum/src-test/za/org Log Message: Directory /cvsroot/coefficient/mailForum/src-test/za/org added to the repository |
From: Pieter v. Z. <pv...@us...> - 2005-08-02 06:47:37
|
Update of /cvsroot/coefficient/mailForum/src-test/za/org/coefficient In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27589/modules/mailForum/src-test/za/org/coefficient Log Message: Directory /cvsroot/coefficient/mailForum/src-test/za/org/coefficient added to the repository |
From: Pieter v. Z. <pv...@us...> - 2005-08-01 09:39:46
|
Update of /cvsroot/coefficient/coefficient In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12921 Modified Files: build.xml Log Message: added make-opendgroups-all-release target wich was in branch v0.9.6 Index: build.xml =================================================================== RCS file: /cvsroot/coefficient/coefficient/build.xml,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** build.xml 18 Jul 2005 14:40:50 -0000 1.35 --- build.xml 1 Aug 2005 09:39:31 -0000 1.36 *************** *** 8,14 **** <property name="dir.jalopy" value="jalopyLib" /> <!--<property name="ear.file" value="${project.name}-${version}.ear" />--> ! <condition property="ear.file" value="${ear.prefix}_${project.name}-${version}.ear" else="${project.name}-${version}.ear"> <isset property="ear.prefix"/> ! </condition> <property name="ejb.jar.file" value="${project.name}-ejb.jar" /> <property name="war.file" value="${project.name}.war" /> --- 8,15 ---- <property name="dir.jalopy" value="jalopyLib" /> <!--<property name="ear.file" value="${project.name}-${version}.ear" />--> ! <!--condition property="ear.file" value="${ear.prefix}_${project.name}-${version}.ear" else="${project.name}-${version}.ear"> <isset property="ear.prefix"/> ! </condition--> ! <property name ="ear.file" value="${project.name}-${version}.ear"/> <property name="ejb.jar.file" value="${project.name}-ejb.jar" /> <property name="war.file" value="${project.name}.war" /> *************** *** 31,34 **** --- 32,37 ---- <property name="coefficient.src.all.release.file" value="coefficient-src-all-${version}.tar.gz" /> <property name="coefficient.core.src.release.file" value="coefficient-core-src-${version}" /> + <property name="src.test.dir" value="src-test" /> + <taskdef resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties"> *************** *** 155,158 **** --- 158,162 ---- <pathelement location="${src.dir}" /> <pathelement location="${gen.src}" /> + <pathelement location="${src.test.dir}" /> </sourceroots> *************** *** 431,434 **** --- 435,439 ---- <include name="coefficient.properties" /> <include name="project.properties" /> + <include name="invoker.properties" /> <include name="VM_global_library.vm" /> </fileset> *************** *** 484,487 **** --- 489,493 ---- <include name="interceptors.properties" /> <include name="hibernate_util.properties" /> + <include name="invoker.properties" /> <include name="VM_global_library.vm" /> </webinf> *************** *** 568,571 **** --- 574,578 ---- <include name="project.properties" /> <include name="interceptors.properties" /> + <include name="invoker.properties" /> </webinf> <lib dir="${lib.dir}"> *************** *** 1144,1148 **** --- 1151,1319 ---- </target> + <!-- =================================================================== --> + <!-- M A K E OPENDGROUPS E J B J A R F I L E --> + <!-- =================================================================== --> + <target name="ejb-jar-opendgroups" description="Make opendgroups ejb jar file"> + <delete> + <fileset dir="${distribution.dir}"> + <include name="**/${ejb.jar.file}" /> + </fileset> + </delete> + <!-- do this so that the module templates will be in the classpath --> + <copy todir="${classes.dir}"> + <fileset dir="${src.dir}"> + <include name="**/templates/**/*" /> + <include name="**/images/**/*" /> + <include name="**/themes/**/resource/*" /> + </fileset> + + </copy> + + <jar destfile="${distribution.dir}/${ejb.jar.file}"> + <metainf dir="${gen.misc}"> + <include name="ejb-jar.xml" /> + <include name="jboss.xml" /> + </metainf> + <fileset dir="${src.misc}"> + <include name="hibernate.properties" /> + <include name="VM_global_library.vm" /> + </fileset> + <fileset dir="${src.misc.opendgroups}"> + <include name="hibernate_util.properties" /> + <include name="coefficient.properties" /> + <include name="project.properties" /> + </fileset> + <fileset dir="${src.misc}/calendar"> + <include name="*.js" /> + <include name="*.css" /> + </fileset> + <fileset dir="${classes.dir}"> + <include name="**/aspects/**/*" /> + <include name="**/events/**/*" /> + <include name="**/modules/**/*" /> + <include name="**/themes/**/*" /> + <include name="**/interfaces/**/*" /> + <include name="**/invokers/**/*" /> + <include name="**/core/**/*" /> + <include name="**/util/**/*" /> + <include name="**/html/**/*" /> + <include name="**/authentication/**/*" /> + <include name="**/statistics/**/*" /> + <include name="**/exception/**/*" /> + <include name="**/*.vm" /> + <include name="**/*.xml" /> + <include name="**/*.properties" /> + <include name="**/*.hbm.xml" /> + <include name="**/*.gif" /> + <include name="**/*.jpg" /> + </fileset> + <fileset dir="${lib.dir}"> + <exclude name="xdoclet-*" /> + <exclude name="xjavadoc-*" /> + <exclude name="aspectjtools.jar" /> + <exclude name="ant-contrib-0.4.jar" /> + <exclude name="mail/*.jar" /> + </fileset> + </jar> + </target> + + + <!-- =================================================================== --> + <!-- B U I L D E A R F I L E --> + <!-- =================================================================== --> + <target name="ear-opendgroups" depends="ejb-jar-opendgroups, war-ejb" description="Make ear file"> + <ear earfile="${distribution.dir}/${ear.file}" appxml="${src.misc}/application.xml"> + <fileset dir="${distribution.dir}" includes="${ejb.jar.file}" /> + <fileset dir="${distribution.dir}" includes="${war.file}" /> + <fileset dir="${src.misc}" includes="jbossmq-destinations-service.xml" /> + </ear> + </target> + + <!-- =================================================================== --> + <!-- D E P L O Y E A R F I L E --> + <!-- =================================================================== --> + <target name="deploy-opendgroups" depends="generate-ejb, compile, ear-opendgroups"> + <copy todir="${jboss.deploy.dir}" overwrite="yes"> + <fileset dir="${distribution.dir}" includes="${ear.file}" /> + </copy> + </target> + + <!-- =================================================================== --> + <!-- G E N E R A T E J B O S S/E J B OPENDGROUPS R E L E A S E --> + <!-- =================================================================== --> + <target name="make-opendgroups-all-release" depends="clean,deploy-opendgroups"> + + <copy file="${src.misc}/hibernate.properties.sample" tofile="hibernate.properties" /> + + <tar destfile="${distribution.dir}/${coefficient.opendgroups.ejb.all.release.file}.tar.gz" compression="gzip"> + <tarfileset dir="${distribution.dir}"> + <include name="${ear.file}" /> + </tarfileset> + <tarfileset dir="."> + <include name="hibernate.properties" /> + </tarfileset> + <tarfileset dir="${src.misc.opendgroups}"> + <include name="INSTALL*" /> + <include name="README*" /> + </tarfileset> + <tarfileset dir="${modules.dir}/mailForum/${distribution.dir}"> + <include name="*.ear" /> + </tarfileset> + <tarfileset dir="${modules.dir}/dgroupsDefaultTheme/${distribution.dir}"> + <include name="*.ear" /> + </tarfileset> + <tarfileset dir="${modules.dir}/dgroupsJalbiradariTheme/${distribution.dir}"> + <include name="*.ear" /> + </tarfileset> + <tarfileset dir="${modules.dir}/dgroupsNavigation/${distribution.dir}"> + <include name="*.ear" /> + </tarfileset> + <tarfileset dir="${modules.dir}/dgroupsOneWorldTheme/${distribution.dir}"> + <include name="*.ear" /> + </tarfileset> + <tarfileset dir="${modules.dir}/dgroupsPlainWhiteTheme/${distribution.dir}"> + <include name="*.ear" /> + </tarfileset> + <tarfileset dir="${modules.dir}/fileUpload/${distribution.dir}"> + <include name="*.ear" /> + </tarfileset> + </tar> + + <zip destfile="${distribution.dir}/${coefficient.opendgroups.ejb.all.release.file}.zip"> + <zipfileset dir="${distribution.dir}"> + <include name="${ear.file}" /> + </zipfileset> + <zipfileset dir="."> + <include name="hibernate.properties" /> + </zipfileset> + <zipfileset dir="${src.misc.opendgroups}"> + <include name="INSTALL*" /> + <include name="README*" /> + </zipfileset> + <zipfileset dir="${modules.dir}/mailForum/${distribution.dir}"> + <include name="*.ear" /> + </zipfileset> + <zipfileset dir="${modules.dir}/dgroupsDefaultTheme/${distribution.dir}"> + <include name="*.ear" /> + </zipfileset> + <zipfileset dir="${modules.dir}/dgroupsJalbiradariTheme/${distribution.dir}"> + <include name="*.ear" /> + </zipfileset> + <zipfileset dir="${modules.dir}/dgroupsNavigation/${distribution.dir}"> + <include name="*.ear" /> + </zipfileset> + <zipfileset dir="${modules.dir}/dgroupsOneWorldTheme/${distribution.dir}"> + <include name="*.ear" /> + </zipfileset> + <zipfileset dir="${modules.dir}/dgroupsPlainWhiteTheme/${distribution.dir}"> + <include name="*.ear" /> + </zipfileset> + <zipfileset dir="${modules.dir}/fileUpload/${distribution.dir}"> + <include name="*.ear" /> + </zipfileset> + </zip> + <delete file="hibernate.properties" /> + </target> |
From: Pieter v. Z. <pv...@us...> - 2005-08-01 09:16:51
|
Update of /cvsroot/coefficient/coefficient/src/misc/opendgroups In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8692/src/misc/opendgroups Added Files: hibernate_util.properties project.properties INSTALL_DGROUPS_JBOSS.txt README.txt coefficient.properties Log Message: added make-opendgroups-all-release target --- NEW FILE: project.properties --- ## Global Group Admin Properties for Open Dgroups 0.5 ## Uncomment out and set the value of any constants you want to change for ## the project configuration ## Defines the name of what the project will be referenced to in the system PROJECT_NAME=group ## Defines whether the project module will allow a user to edit the name EDIT_PROJECT_NAME=true ## Defines whether the project module will allow a user to edit the categories EDIT_CATEGORIES=true ## Defines whether the project module will allow a user to edit the attributes EDIT_ATTRIBUTES=false ## Defines whether the project module will allow a user to edit the attributes data EDIT_ATTRIBUTES_DATA=true ## Defines whether the project module will allow a user to manage the project versions or include them at all MANAGE_PROJECT_VERSIONS=false ## Defines whether the project module will allow a user to manage the project components or include them at all MANAGE_PROJECT_COMPONENTS=false ## Defines whether the project module will allow a user to add and remove modules from and to a project ADD_REMOVE_MODULES=false ## Defines whether the project module will allow a user to change the projectto a workflow based project CHANGE_TO_WORKFLOW=false ## Defines whether the project module will allow a user to change the projects current state if it is a workflow based project CHANGE_WORKFLOW_STATE=false ## Defines whether the project module will allow a user to change the project to a non-workflow based project CHANGE_TO_CUSTOM_PROJECT=false --- NEW FILE: INSTALL_DGROUPS_JBOSS.txt --- Install Open Dgroups on JBoss Open Dgroups powered by Coefficient - open source project based collaboration platform Open Dgroups version 0.6 Coefficient version 0.9.6 12 July 2005 Requirement Notes: To run Open Dgroups you must have installed the following on your machine: * 1. at least j2sdk-1.4.1 * 2. JBoss-3.2.x * 3. coefficient-opendgroups-all-0.9.6.tar.gz * 4. james-2.2.0 * 5. jamesMailForumResources-0.9.6.tar.gz * 6. dithaka-base-0.7.tar.gz * 7. dithaka-james-0.7.tar.gz Install and Configure James 1. Install the James-2.2.0 mail server - we will refer to this location as {JAMES_HOME}. 2. Extract the contents of the jamesMailForumResources-x.x.tar.gz, dithaka-base-x.x.tar.gz and dithaka-james.x.x.tar.gz. From here on this document will refer to the location of the extracted files as {RESOURCES_HOME}. 3. You must first copy the downloaded jar files into the James deployment. Copy {RESOURCES_HOME}/lib/*.jar to {JAMES_HOME}/lib . 4. Setup your database and include the JDBC jar in the {JAMES_HOME}/lib directory so James can see it in its classpath. 5. You must make sure that your hibernate.properties is setup to reference the database that you setup in the last step. A sample hibernate.properties can be found in the root directory of the James Mail Forum Resources installation. Five properties must be changed: hibernate.connection.username={username_for_your_db} hibernate.connection.password={password_for_your_db} hibernate.dialect={hibernate_dialect_for_your_db} hibernate.connection.driver_class={driver_class_for_your_db} hibernate.connection.url={jdbc_url_for_your_db} The other properties stay unchanged. 6. Once the hibernate.properties file is correct you must make a jar file that contains the file. To make a jar do: 'jar cvf hibernateProperties.jar hibernate.properties' You must then place the jar file you created into the {JAMES_HOME}/lib directory. 7. The next thing you must do is setup the config.xml file for James. This file has some Coefficient and Open Dgroups specific mailet and matchers. NOTE: James only creates some files and directories during the first time it run. Therefore you should startup James (as a privileged user since it runs on a port below 1000) to see the directory structures we are talking about in the next statements. There are several configuration settings to be made in the {RESOURCE_HOME}/config.xml file: - If you are using an SMTP gateway, find the gateway property. There is text that reads, {YOUR_GATEWAY_GOES_HERE}. Replace this text with your networks gateway address. Modify the gateway Port if yours is not port 25. If tyou are not using a gateway, comment the two lines out. - If you are using James as a standalone SMTP server, set your server name in the James configuration block:: <servername>your.servername.net</servername> - Enable the RemoteAddreNotInNetwork matcher in the Transport block by removing the comments and adding your server IP address. <mailet match="RemoteAddrNotInNetwork=127.0.0.1,xxx.xxx.xxx.xxx" class="ToProcessor"> <processor> relay-denied </processor> <notice>550 - Requested action not taken: relaying denied</notice> </mailet> - Change the default login and password. This is required to set up al local administrator account. Next copy the {RESOURCE_HOME}/config.xml to {JAMES_HOME}/apps/james/SAR-INF/config.xml. 8. Start James. Install and Configure JBOSS 1. The system has been tested under JBoss-3.2.x and this build includes only JBoss specific deployment descriptors. To run this code under a different application server you are on your own and you should build the system from the Coefficient CVS. 2. NOTE: Coefficient uses jfreechart to generate graphs for project statistics. JBoss ships with an older version of the jfreechart jars so these must be removed for the statistics functionality to work. These jars are included in the jmx management console, so the easiest thing to do is not deploy it. This can be accomplished by moving the following directories out of the deployment directories: {JBOSS_HOME}/server/all/deploy/management and {JBOSS_HOME}/server/default/deploy/management Some windowing environments display the following error in the JBoss server log: "java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable." To correct add the following line to {JBOSS_HOME}/bin/run.conf: JAVA_OPTS="-Djava.awt.headless=true $JAVA_OPTS" 3. NOTE: if you are using JBoss-3.2.1 you must fix an incorrectly set property in the {JBOSS_HOME}/server/default/conf/jboss-server.xml file: Change <attribute name="RecursiveSearch">False</attribute> to <attribute name="RecursiveSearch">True</attribute> 4. NOTE: If you are running JBoss-3.2.6 or higher you must remove the included hibernate2.jar because coefficient uses a patched hibernate2.jar so that it can create the tables at runtime. The jars in JBoss can be found here: {JBOSS_HOME}/server/all/lib/hibernate2.jar and {JBOSS_HOME}/server/default/lib/hibernate2.jar Configure the database 1. Create a database instance, user account and password. 2. Setup the Jboss datasource and call it CoefficientDS. Save to the {JBOSS_HOME}/server/default/deploy directory. An example for PostgreSQL is available to download on www.opendgroups.net. Save the JDBC jar for your database in the lib directory so JBoss can see it in its classpath. 3. You must make sure that your hibernate.properties is setup to reference the CoefficientDS datasource. Extract the sample hibernate.properties file from the root directory of the downloaded coefficient-opendgroups-all-x.x file. Three properties must be changed: hibernate.connection.username={username_for_your_db} hibernate.connection.password={password_for_your_db} hibernate.dialect={hibernate_dialect_for_your_db} The other properties stay unchanged. Configure and deploy Coefficient 1. Once your hibernate.properties file is correct you must insert it into the coefficient.x.x.ear file together with three other Open Dgroups specific configurations files - coefficient.properties, hibernate_util.properties and project.properties.) Extract coefficient.xx.ear and the properties files from coefficient-opendgroups-all-x.x.tar.gz. Use either updateAllPropertiesEAR.sh or updateAllPropertiesEAR.bat. These scripts expect that the files coefficient-x.x.ear and and the four properties files are in the same directory that you are running the script from. It also expects that 'jar' is available to the system. Executing this script simply re-packages the .ear placing the properties files in the correct place. 2. To deploy the system copy coefficient-x.x.ear to the {JBOSS_HOME}/server/default/deploy directory. Next extract the following Open Dgroup modules from coefficient-opendgroups-all.tar.gz and copy to the {JBOSS_HOME}/server/default/deploy directory. dgroupsDefaultTheme-x.x.ear dgroupsJalbiradariTheme-x.x.ear dgroupsNavigation-x.x.ear dgroupsOneWorldTheme-x.x.ear dgroupsPlainWhiteTheme-x.x.ear fileUpload-x.x.ear mailforum-x.x.ear NOTE: There is a known issue with the system. If JBoss deploys a module before the core has been deployed it will freak out since the module depends on classes and libs contained in the core. JBoss will deploy the latest timestamped .ear last so this can be avoided by copying the core (coefficient-x.x.ear) first and any modules after. 3. You should be up and running. Point your browser at whatever url you have configured JBoss to run on, the context for the project is setup as the root and the entry servlet responds to index.html, usually: http://localhost:8080/index.html 4. The system will initially prompt for some needed properties before you can start using it. These are a valid email address to use as site administrator the name of the James smtp host: MAIL_SMTP_HOST={my.smtp.host} MAIL_SENDER_ADDRESS={my.email.address} ALIAS_MAIL_HOST_ADDRESS={my.smtp.host} NOTE: the system will be unable to send user confirmations or project confirmations if these are not set. You may want to modify the location that uploaded files are stored, this can be done by setting the property: FILEUPLOAD_SAVE_PATH={path.to.where.you.store.fileUploads} 5. Fill these in and click save. Do not change JNDI, JMS settings since this binary build has deployment descriptors pointing to the default values. 6. The default password and username is 'admin', 'admin'. 7. To be able to use the default Open Dgroups Category List you need to download the following file: categories.sql, and upload it into the database using the following commands (if you are using postgreSQL): su postgres cat categories.sql | psql databasename 8. Enjoy! --- NEW FILE: coefficient.properties --- ## Uncomment out and set the value of any constants you want to change for ## the system ## Defines the name of the site as referenced in the title CFG_SITENAME=Dgroups ## Defines the footer message displayed on the site CFG_FOOT1=Footer Message ## The maximum size of a file that can be uploaded to the server in bytes MAX_FILE_UPLOAD_SIZE_BYTES=10485760 ## The date format used within the project SYSTEM_DATE_FORMAT=dd/MM/yyyy ## The datasource name used by this installation DATA_SOURCE_NAME=java:/CoefficientDS ## The connection factory used in the application server used to deploy JMS_CONNECTION_FACTORY=java:/ConnectionFactory ## The name of the deployed queue used to keep track of statistics JMS_STATISTICS_QUEUE=queue/statisticsQueue ## The string used to store the current user of the system in the session USER_SESSION_STRING=__current_user_obj_ ## The JNDI Context prefix for the system ## NOTE do not change this unless you have changed the deployment info as well JNDI_CONTEXT=za/org/coefficient/ ## The max number of elements to show on a page with a pager MAX_ELEMENTS_PER_PAGE=3 ## The default theme to use on startup DEFAULT_THEME_JNDI_NAME=dgroupsDefaultTheme ## This is the SMTP host that coefficient should use to send mail MAIL_SMTP_HOST= ## This is the address that the mail will have as a return MAIL_SENDER_ADDRESS= ## This is the address that mailforum mail uses as an alias ALIAS_MAIL_HOST_ADDRESS= ## This is the path that file uploads are saved in... path MUST end with a trailing path seperator eg 'C:\\files\\' FILEUPLOAD_SAVE_PATH=./ ## This is the module that should serve as the welcome page if you are not logged in WELCOME_MODULE=Home ## This limits the number of mail forums that can be created MAX_NUM_OF_FORUMS=1 --- NEW FILE: README.txt --- Open Dgroups: Based on Coefficient - open source project based collaboration platform ==================================================================================== version 0.6 14 July 2005 Open Dgroups ============ Open Dgroups is the prime candidate for the open source version of the Dgroups web site. Dgroups is an online home for groups and communities interested in international development. In Dgroups, one can find the online tools and services needed to support the activities of a team, a group, a network, a partnership or a community. Dgroups is a place to find groups who are interested in the same topics in international development as you. If you are an International Development practitioner, please refer to the Dgroups.org website for details of how to become part of the Dgroups community. For more details visit: opendgroups.net Coefficient: ============= Coefficient is a scalable open source project based collaboration platform that can run in J2EE and web application containers. It currently provides basic collaboration tools as hot deployable modules. It also provides a workflow engine to help guide projects through their development cycle. These are the Coefficient modules that are core to Open Dgroups: * the Coefficient core module with some core themes. An ejb and a web module is available. * dgroupsDefaultTheme * dgroupsJalbiradariTheme * dgroupsNavigation * dgroupsOneWorldTheme * dgroupsPlainWhiteTheme * fileUpload * mailForum Please read the INSTALL_DGROUPS_JBOSS.txt for installation instructions --- NEW FILE: hibernate_util.properties --- ## This is a properties file for the HibernateUtil ## Defines the class that contains my data loading method #data_loader_class=za.org.coefficient.util.ejb.DataLoaderUtil data_loader_class=za.org.coefficient.themes.dgroupsDefaultTheme.DgroupsDataLoaderUtil ## Defines the method to call to load my default data data_loader_method=initializeDataIfNeeded ## Defines the classes that I want to have configured in ## Hibernate at initialization class_1=za.org.coefficient.statistics.data.ModuleStatisticsData class_2=za.org.coefficient.statistics.data.ModuleStatistics class_3=za.org.coefficient.statistics.data.ProjectStatisticsData class_4=za.org.coefficient.statistics.data.ProjectStatistics class_5=za.org.coefficient.core.Project class_6=za.org.coefficient.core.Category class_7=za.org.coefficient.core.ProjectAttribute class_8=za.org.coefficient.core.ProjectAttributeData class_9=za.org.coefficient.core.ProjectComponent class_10=za.org.coefficient.core.ProjectVersion class_11=za.org.coefficient.core.AttributeElement class_12=za.org.coefficient.core.CoefficientConfiguration class_13=za.org.coefficient.authentication.CoefficientUser class_14=za.org.coefficient.authentication.Role class_15=za.org.coefficient.authentication.ProjectMember class_16=za.co.csir.icomtek.workflow.WorkflowData ## Defines the JTA Transaction Managers location by default ## it is java:/TransactionManager jta_transaction_manager=java:/TransactionManager ## Defines whether the HibernateUtil should create tables ## for configured objects that do not yet have a table ## This requires a patched jar of Hibernate, and defaults ## to true. create_tables=true |
From: Thomas F. <tfo...@us...> - 2005-07-26 16:08:36
|
Update of /cvsroot/coefficient/coefficient/src/za/org/coefficient/modules/project In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv405/src/za/org/coefficient/modules/project Modified Files: Projects.java Log Message: Removed bad import Index: Projects.java =================================================================== RCS file: /cvsroot/coefficient/coefficient/src/za/org/coefficient/modules/project/Projects.java,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** Projects.java 21 Jul 2005 11:21:24 -0000 1.35 --- Projects.java 26 Jul 2005 16:08:08 -0000 1.36 *************** *** 20,76 **** package za.org.coefficient.modules.project; ! import org.apache.commons.lang.StringUtils; ! ! import net.sf.hibernate.Hibernate; import net.sf.hibernate.HibernateException; ! import net.sf.hibernate.StaleObjectStateException; ! import za.co.csir.icomtek.workflow.WorkflowData; import za.co.csir.icomtek.workflow.WorkflowEvaluator; ! import za.co.csir.icomtek.workflow.model.State; ! import za.co.csir.icomtek.workflow.model.StateTransition; ! import za.co.csir.icomtek.workflow.model.Workflow; ! ! import za.org.coefficient.authentication.CoefficientUser; ! import za.org.coefficient.authentication.ProjectMember; ! import za.org.coefficient.authentication.Role; ! import za.org.coefficient.core.Category; ! import za.org.coefficient.core.Constants; ! import za.org.coefficient.core.Project; ! import za.org.coefficient.core.ProjectAttribute; ! import za.org.coefficient.core.ProjectAttributeData; ! import za.org.coefficient.core.ProjectVersion; ! import za.org.coefficient.core.ProjectComponent; import za.org.coefficient.events.*; import za.org.coefficient.interfaces.CoefficientContext; import za.org.coefficient.modules.BaseModule; ! import za.org.coefficient.modules.attribute.*; ! import za.org.coefficient.modules.rss.AffectedData; import za.org.coefficient.statistics.data.ProjectStatistics; ! import za.org.coefficient.util.common.HardURLConverterChainUtil; ! import za.org.coefficient.util.common.MailUtil; ! import za.org.coefficient.util.common.InvokerFactory; ! import net.sf.hibernate.util.HibernateUtil; import za.org.coefficient.util.ejb.SecurityUtil; import za.org.coefficient.util.ejb.VelocityScreenUtil; - import za.org.coefficient.html.Theme; - import za.org.coefficient.html.ThemeSupport; - - import java.io.Serializable; - import java.io.UnsupportedEncodingException; - - import java.net.URLEncoder; - - import java.util.ArrayList; - import java.util.Date; - import java.util.Enumeration; - import java.util.HashMap; - import java.util.Iterator; - import java.util.List; - import java.util.Vector; - - import javax.naming.Context; - import javax.naming.NameClassPair; - import javax.naming.NamingEnumeration; /** --- 20,47 ---- package za.org.coefficient.modules.project; ! import java.io.Serializable; ! import java.io.UnsupportedEncodingException; ! import java.net.URLEncoder; ! import java.util.*; ! import javax.naming.*; ! import net.sf.hibernate.*; import net.sf.hibernate.HibernateException; ! import net.sf.hibernate.util.HibernateUtil; ! import org.apache.commons.lang.StringUtils; import za.co.csir.icomtek.workflow.WorkflowData; import za.co.csir.icomtek.workflow.WorkflowEvaluator; ! import za.co.csir.icomtek.workflow.model.*; ! import za.org.coefficient.authentication.*; ! import za.org.coefficient.core.*; import za.org.coefficient.events.*; + import za.org.coefficient.html.Theme; + import za.org.coefficient.html.ThemeSupport; import za.org.coefficient.interfaces.CoefficientContext; import za.org.coefficient.modules.BaseModule; ! import za.org.coefficient.modules.attribute.AttributeDisplayData; import za.org.coefficient.statistics.data.ProjectStatistics; ! import za.org.coefficient.util.common.*; import za.org.coefficient.util.ejb.SecurityUtil; import za.org.coefficient.util.ejb.VelocityScreenUtil; /** |
From: Thomas F. <tfo...@us...> - 2005-07-21 11:24:34
|
Update of /cvsroot/coefficient/coefficient/src/za/org/coefficient/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21611/src/za/org/coefficient/modules Modified Files: BaseModule.java Log Message: added support for the RSS stuff Index: BaseModule.java =================================================================== RCS file: /cvsroot/coefficient/coefficient/src/za/org/coefficient/modules/BaseModule.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** BaseModule.java 19 Apr 2005 08:13:06 -0000 1.9 --- BaseModule.java 21 Jul 2005 11:21:24 -0000 1.10 *************** *** 20,28 **** package za.org.coefficient.modules; import za.org.coefficient.authentication.CoefficientUser; import za.org.coefficient.authentication.Role; import za.org.coefficient.events.*; - import za.org.coefficient.events.CoefficientEvent; - import za.org.coefficient.events.CoefficientEventPublisher; import za.org.coefficient.interfaces.CoefficientContext; import za.org.coefficient.interfaces.ModuleLocal; --- 20,30 ---- package za.org.coefficient.modules; + import java.util.Date; + import java.util.List; + import za.org.coefficient.authentication.CoefficientUser; import za.org.coefficient.authentication.Role; + import za.org.coefficient.core.Project; import za.org.coefficient.events.*; import za.org.coefficient.interfaces.CoefficientContext; import za.org.coefficient.interfaces.ModuleLocal; *************** *** 115,117 **** --- 117,151 ---- CoefficientEvents.publishEvent(event); } + + /** + * Get the string to use as the "origin" for RSS items. Most modules won't need to touch this; + * it's here so that the "blog" module can override it to be something like "blog:<i>blog_id</i>" + * This may be necessary so that the blog pages and feeds can find the correct items quicky (the affectedObject + * mechanism may be better, and more generic, so it may replace this). + * @return the origin to use for RSS items + */ + private String getRSSOrigin(){ + return "module:" + getModuleName(); + } + + /** + * Create an RSS item (originating from this module). If the RSS module is installed, this item + * will be added to the pool available for display in RSS feeds/channels. + * @param title The RSS item title + * @param text The RSS item text/body + * @param link The RSS item link/url + * @param project The project that this RSS item is associated with, or null if not associated to a project + * @param affectedObjects A list of RSSItemCreatedEvent.AffectedObject objects for this RSS item + */ + protected void createRSSItem(String title, String text, String link, Project project, List affectedObjects) { + RSSItemCreatedEvent event = new RSSItemCreatedEvent(title); + event.setCreateDate(new Date()); + event.setItemText(text); + event.setLink(link); + event.setProject(project); + event.setOrigin(getRSSOrigin()); + event.setCreator(getModuleDisplayName()); + event.setAffectedObjects(affectedObjects); + publishEvent(event); + } } |
From: Thomas F. <tfo...@us...> - 2005-07-21 11:23:47
|
Update of /cvsroot/coefficient/coefficient/src/za/org/coefficient/themes/defaultTheme/resource In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21611/src/za/org/coefficient/themes/defaultTheme/resource Modified Files: DefaultTheme.properties Log Message: added support for the RSS stuff Index: DefaultTheme.properties =================================================================== RCS file: /cvsroot/coefficient/coefficient/src/za/org/coefficient/themes/defaultTheme/resource/DefaultTheme.properties,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** DefaultTheme.properties 1 Dec 2004 13:39:41 -0000 1.14 --- DefaultTheme.properties 21 Jul 2005 11:21:25 -0000 1.15 *************** *** 27,30 **** --- 27,31 ---- UserInformation=EAST, 1 News=EAST, 2 + RSSFeeds=EAST Vote=EAST Status=EAST |
From: Thomas F. <tfo...@us...> - 2005-07-21 11:23:25
|
Update of /cvsroot/coefficient/coefficient/src/za/org/coefficient/events In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21611/src/za/org/coefficient/events Modified Files: CoefficientEvent.java Added Files: RSSItemCreatedEvent.java Log Message: added support for the RSS stuff Index: CoefficientEvent.java =================================================================== RCS file: /cvsroot/coefficient/coefficient/src/za/org/coefficient/events/CoefficientEvent.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CoefficientEvent.java 19 Apr 2005 08:13:06 -0000 1.1 --- CoefficientEvent.java 21 Jul 2005 11:21:24 -0000 1.2 *************** *** 10,14 **** public class CoefficientEvent implements Serializable{ ! private String description; /** --- 10,14 ---- public class CoefficientEvent implements Serializable{ ! protected String description; /** --- NEW FILE: RSSItemCreatedEvent.java --- /* * Coefficient: a project collaboration engine * Release under: LGPL */ package za.org.coefficient.events; import java.io.Serializable; import java.util.Date; import java.util.List; import za.org.coefficient.authentication.CoefficientUser; import za.org.coefficient.core.Project; /** * Class: Coefficient event to handle the creation of RSS items. If the RSS module is * installed, it will receive these events and do the db work. * * @author Thomas Fogwill <tfo...@us...> */ public class RSSItemCreatedEvent extends CoefficientEvent { private String origin; private String itemTitle; private String itemText; private String about; private String language; private String link; private Date createDate; private String creator; private Project project; private List affectedObjects; /** * Contructor * @param rssItemTitle The title of the RSS item */ public RSSItemCreatedEvent(String rssItemTitle){ super("Event: RSS Created"); this.itemTitle = rssItemTitle; } /** * @return Returns the affectedObjects. */ public List getAffectedObjects() { return affectedObjects; } /** * @param affectedObjects The affectedObjects to set. */ public void setAffectedObjects(List affectedObjects) { if (affectedObjects != null){ for (int i = 0; i < affectedObjects.size(); i++) if (affectedObjects.get(i) != null && !(affectedObjects.get(i) instanceof AffectedObject)) throw new RuntimeException("Unsupported AffectedObject type"); } this.affectedObjects = affectedObjects; } /** * @return Returns the about. */ public String getAbout() { return about; } /** * @param about The about to set. */ public void setAbout(String about) { this.about = about; } /** * @return Returns the creator. */ public String getCreator() { return creator; } /** * @param creator The creator to set. */ public void setCreator(String creator) { this.creator = creator; } /** * @return Returns the itemText. */ public String getItemText() { return itemText; } /** * @param itemText The itemText to set. */ public void setItemText(String itemText) { this.itemText = itemText; } /** * @return Returns the language. */ public String getLanguage() { return language; } /** * @param language The language to set. */ public void setLanguage(String language) { this.language = language; } /** * @return Returns the link. */ public String getLink() { return link; } /** * @param link The link to set. */ public void setLink(String link) { this.link = link; } /** * @return Returns the createDate. */ public Date getCreateDate() { return createDate; } /** * @param createDate The createDate to set. */ public void setCreateDate(Date createDate) { this.createDate = createDate; } /** * @return Returns the project. */ public Project getProject() { return project; } /** * @param project The project to set. */ public void setProject(Project project) { this.project = project; } /** * @return Returns the origin. */ public String getOrigin() { return origin; } /** * @param origin The origin to set. */ public void setOrigin(String origin) { this.origin = origin; } /** * @return Returns the itemTitle. */ public String getItemTitle() { return itemTitle; } /** * @param itemTitle The itemTitle to set. */ public void setItemTitle(String itemTitle) { this.itemTitle = itemTitle; } /** * Class: AffectedObject * Description: Represents an object affected by or related to an RSS item * Expected data: * - type = classname * - id = object id * @author Thomas Fogwill <tfo...@us...> */ public static class AffectedObject implements Serializable{ Class type; long id; public AffectedObject(Class type, long id){ this.id = id; this.type = type; } /** * @return Returns the id. */ public long getId() { return id; } /** * @return Returns the type. */ public Class getType() { return type; } } } |
From: Thomas F. <tfo...@us...> - 2005-07-21 11:22:56
|
Update of /cvsroot/coefficient/coefficient/src/za/org/coefficient/modules/project In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21611/src/za/org/coefficient/modules/project Modified Files: Projects.java Log Message: added support for the RSS stuff Index: Projects.java =================================================================== RCS file: /cvsroot/coefficient/coefficient/src/za/org/coefficient/modules/project/Projects.java,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** Projects.java 19 Apr 2005 08:13:06 -0000 1.34 --- Projects.java 21 Jul 2005 11:21:24 -0000 1.35 *************** *** 43,51 **** import za.org.coefficient.core.ProjectComponent; import za.org.coefficient.events.*; - import za.org.coefficient.events.CoefficientEvent; - import za.org.coefficient.events.CoefficientEvents; import za.org.coefficient.interfaces.CoefficientContext; import za.org.coefficient.modules.BaseModule; import za.org.coefficient.modules.attribute.*; import za.org.coefficient.statistics.data.ProjectStatistics; import za.org.coefficient.util.common.HardURLConverterChainUtil; --- 43,50 ---- import za.org.coefficient.core.ProjectComponent; import za.org.coefficient.events.*; import za.org.coefficient.interfaces.CoefficientContext; import za.org.coefficient.modules.BaseModule; import za.org.coefficient.modules.attribute.*; + import za.org.coefficient.modules.rss.AffectedData; import za.org.coefficient.statistics.data.ProjectStatistics; import za.org.coefficient.util.common.HardURLConverterChainUtil; *************** *** 352,356 **** ctx.setModuleContent("The " + ProjectConstants.PROJECT_NAME + " is now active", ! getModuleDisplayName()); } else { throw new StaleObjectStateException(prj.getClass(), --- 351,362 ---- ctx.setModuleContent("The " + ProjectConstants.PROJECT_NAME + " is now active", ! getModuleDisplayName()); ! List affectedObjects = new ArrayList(); ! affectedObjects.add(new RSSItemCreatedEvent.AffectedObject(Project.class, prj.getId().longValue())); ! String title = "Project activated: " + prj.getShortName(); ! String body = "A new project named \"" + prj.getName() + "\" has been approved and activated."; ! String link = "index.html?module=Project&clearProject=true&projectId=" + prj.getId(); ! //Project param is null here because this is site-wide RSS event ! createRSSItem(title, body, link, null, affectedObjects); } else { throw new StaleObjectStateException(prj.getClass(), |
From: Thomas F. <tfo...@us...> - 2005-07-21 11:19:11
|
Update of /cvsroot/coefficient/rssBlog In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21330 Modified Files: .cvsignore README.txt Log Message: fixed readme Index: .cvsignore =================================================================== RCS file: /cvsroot/coefficient/rssBlog/.cvsignore,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** .cvsignore 21 Jul 2005 10:21:30 -0000 1.1.1.1 --- .cvsignore 21 Jul 2005 11:19:02 -0000 1.2 *************** *** 1,2 **** --- 1,3 ---- build.properties build + *.log Index: README.txt =================================================================== RCS file: /cvsroot/coefficient/rssBlog/README.txt,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** README.txt 21 Jul 2005 10:21:30 -0000 1.1.1.1 --- README.txt 21 Jul 2005 11:19:02 -0000 1.2 *************** *** 6,13 **** This is a module that enables the publishing of project-specific and/or site-wide RSS news feeds. This module uses the Coefficient ! Event system to receive notifications when certain system functions ! are performed. This RSS module is configured to listen for specific ! system events, and to export these as RSS items. ! It also allows users to create personalised news feeds, as well as ! blogs. --- 6,13 ---- This is a module that enables the publishing of project-specific and/or site-wide RSS news feeds. This module uses the Coefficient ! Event system to receive notifications when modules publish RSS ! items. Feeds are specified by providing a set of rules. These ! rules are used to match the apporpriate entries/items. ! This module also allows users to create personalised news feeds, as ! well as blogs (using the same mechanism). |
From: Thomas F. <tfo...@us...> - 2005-07-18 14:40:59
|
Update of /cvsroot/coefficient/coefficient In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16092 Modified Files: build.xml build.properties.sample Log Message: Added support for the prefixing of the core and modules' .ear files. This is to support the JBoss PrefixDeploymentSorter. If you set the property ear.prefix in your build.properties, you'll get an ear file like: ${ear.prefix}_${name}-${version}.ear Index: build.xml =================================================================== RCS file: /cvsroot/coefficient/coefficient/build.xml,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** build.xml 7 Jul 2005 16:36:08 -0000 1.34 --- build.xml 18 Jul 2005 14:40:50 -0000 1.35 *************** *** 7,11 **** <property name="lib.dir" value="lib" /> <property name="dir.jalopy" value="jalopyLib" /> ! <property name="ear.file" value="${project.name}-${version}.ear" /> <property name="ejb.jar.file" value="${project.name}-ejb.jar" /> <property name="war.file" value="${project.name}.war" /> --- 7,14 ---- <property name="lib.dir" value="lib" /> <property name="dir.jalopy" value="jalopyLib" /> ! <!--<property name="ear.file" value="${project.name}-${version}.ear" />--> ! <condition property="ear.file" value="${ear.prefix}_${project.name}-${version}.ear" else="${project.name}-${version}.ear"> ! <isset property="ear.prefix"/> ! </condition> <property name="ejb.jar.file" value="${project.name}-ejb.jar" /> <property name="war.file" value="${project.name}.war" /> *************** *** 146,149 **** --- 149,154 ---- <fileset dir="${classes.dir}" includes="**" /> </delete--> + <!-- this should also support ... showWeaveInfo="true" ... --> + <!-- verbose="true" --> <iajc destdir="${classes.dir}"> <sourceroots> Index: build.properties.sample =================================================================== RCS file: /cvsroot/coefficient/coefficient/build.properties.sample,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** build.properties.sample 18 Jan 2005 15:19:57 -0000 1.4 --- build.properties.sample 18 Jul 2005 14:40:50 -0000 1.5 *************** *** 5,9 **** build.dest=build src.dir=src ! modules.dir=${PATH_TO_DIRECTORY_CONTAINING_MODULES} ####################################### --- 5,12 ---- build.dest=build src.dir=src ! modules.dir=${PATH_TO_DIRECTORY_CONTAINING_MODULES} ! # Uncomment this to have 0_ prefixed to the generated .ear file ! # This is useful when using JBoss' PrefixDeploymentSorter ! #ear.prefix=0 ####################################### |
From: Thomas F. <tfo...@us...> - 2005-07-18 14:33:04
|
Update of /cvsroot/coefficient/coefficient In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14080 Modified Files: modules-common.ent Log Message: Added support for the prefixing of modules .ear files. This is to support the JBoss PrefixDeploymentSorter. If you set the property ear.prefix in your build.properties (for the module), you'll get an ear file like: ${ear.prefix}_${module_name}-${version}.ear Required: Ant 1.6.3 Index: modules-common.ent =================================================================== RCS file: /cvsroot/coefficient/coefficient/modules-common.ent,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** modules-common.ent 18 Jul 2005 11:51:00 -0000 1.17 --- modules-common.ent 18 Jul 2005 14:32:42 -0000 1.18 *************** *** 9,13 **** </condition> <property name="dir.jalopy" value="${coefficient.path}/jalopyLib"/> ! <property name="ear.file" value="${project.name}-${version}.ear"/> <property name="ejb.jar.file" value="${project.name}-ejb.jar"/> <property name="gen.src" value="${build.dest}/gen/src"/> --- 9,17 ---- </condition> <property name="dir.jalopy" value="${coefficient.path}/jalopyLib"/> ! ! <!--<property name="ear.file" value="${project.name}-${version}.ear"/>--> ! <condition property="ear.file" value="${ear.prefix}_${project.name}-${version}.ear" else="${project.name}-${version}.ear"> ! <isset property="ear.prefix"/> ! </condition> <property name="ejb.jar.file" value="${project.name}-ejb.jar"/> <property name="gen.src" value="${build.dest}/gen/src"/> |
From: Thomas F. <tfo...@us...> - 2005-07-18 11:51:10
|
Update of /cvsroot/coefficient/coefficient In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13399 Modified Files: modules-common.ent Log Message: Added conditional include of module's lib directory. This provides cleaner solution to this problem (se ugliness in discussion/build.xml for an example of the problem). NOTE: requires Ant 1.6.3 or newer Index: modules-common.ent =================================================================== RCS file: /cvsroot/coefficient/coefficient/modules-common.ent,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** modules-common.ent 7 Jul 2005 14:22:21 -0000 1.16 --- modules-common.ent 18 Jul 2005 11:51:00 -0000 1.17 *************** *** 5,8 **** --- 5,11 ---- <property name="version" value="0.9.6"/> <property name="lib.dir" value="${coefficient.path}/lib"/> + <condition property="module.lib.dir" value="lib" else="${lib.dir}"> + <available file="lib/" type="dir" /> + </condition> <property name="dir.jalopy" value="${coefficient.path}/jalopyLib"/> <property name="ear.file" value="${project.name}-${version}.ear"/> *************** *** 36,39 **** --- 39,45 ---- <include name="**/*.jar"/> </fileset> + <fileset dir="${module.lib.dir}"> + <include name="**/*.jar"/> + </fileset> <!-- this is so we can find the core libs --> |
From: Thomas F. <tfo...@us...> - 2005-07-18 11:17:44
|
Update of /cvsroot/coefficient/coefficient/xdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7058 Modified Files: navigation.xml Added Files: download.xml Log Message: Added description doc for dowloadable files Index: navigation.xml =================================================================== RCS file: /cvsroot/coefficient/coefficient/xdocs/navigation.xml,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** navigation.xml 10 Jun 2005 15:25:31 -0000 1.11 --- navigation.xml 18 Jul 2005 11:17:30 -0000 1.12 *************** *** 12,15 **** --- 12,16 ---- <item name="Screenshots" href="/screenshots.html"/> <item name="Supported Platforms" href="/supportedPlatforms.html"/> + <item name="Download" href="/download.html"/> <item name="FAQ" href="/faq.html"/> <item name="TODO" href="/todo.html"/> --- NEW FILE: download.xml --- <?xml version="1.0" encoding="ISO-8859-1"?> <document> <properties> <title>coefficient downloads</title> <author email="tfo...@us...">Thomas Fogwill</author> </properties> <body> <section name="Overview"> <P>The current release version is 0.9.6</P> <P>The coefficient file release structure is quite modular. Each of the available packages (and the files in each package) are described below</P> <P>These file can be downloaded <a href="http://sourceforge.net/project/showfiles.php?group_id=90755">here</a></P> </section> <section name="package: coefficient"> <P>This package contains the core coefficient files needed to run a base Coefficient install. It also contains some files (for convenience) that include the core, plus all available modules.</P> <P>Files: <UL> <LI>coefficient-core-src-${version} .{tar.gz,zip} : the source code for the core Coefficient classes (i.e. source for everything)</LI> <LI>coefficient-ejb-all-${version}.{tar.gz,zip} : ejb binaries (.ear files) for the core Coefficient classes, and for all avaiable modules (i.e. .ear binaries for everything)</LI> <LI>coefficient-ejb-core-${version}.{tar.gz,zip} : binaries for only the core Coefficient classes </LI> <LI>coefficient-war-all-${version}.{tar.gz,zip} : tomcat binaries for the core Coefficient classes, and for all avaiable modules (i.e. .war binaries for everything)</LI> </UL> </P> </section> <section name="package: csir-workflow"> <P>This package contains the source and binaries for the csir-workflow package.</P> <P>Files: <UL> <LI>csir-workflow-src.{tar.gz,zip} : the source code for the csir-workflow classes</LI> <LI>csir-workflow-jar.{tar.gz,zip} : binaries for the csir-workflow classes, as a .jar file.</LI> </UL> </P> </section> <section name="package: dgroups-modules"> <P>This package contains the modules that form part of the OpenDgroups platform. It also contains convenience files with everything needed to create an OpenDgroups installation.</P> <P>Files: <UL> <LI>coefficient-opendgroups-all-${open_dgroups_version}.{tar.gz,zip} : convenience binaries with everything needed to create an OpenDgroups installation.</LI> <LI>dgroupsNavigation-ejb-${version}.{tar.gz,zip} : ejb binaries (.ear files) for the OpenDgroups navigation module</LI> <LI>dgroupsNavigation-jar-${version}.{tar.gz,zip} : binaries (as a .jar file) for the OpenDgroups navigation module</LI> <LI>dgroupsNavigation-src-${version}.{tar.gz,zip} : source code for the OpenDgroups navigation module</LI> <LI>dgroupsDefaultTheme-ejb-${version}.{tar.gz,zip} : ejb binaries (.ear files) for the default OpenDgroups theme</LI> <LI>dgroupsDefaultTheme-jar-${version}.{tar.gz,zip} : binaries (as a .jar file) for the default OpenDgroups theme</LI> <LI>dgroupsDefaultTheme-src-${version}.{tar.gz,zip} : source code for the default OpenDgroups theme</LI> <LI>dgroupsJalbiradariTheme-ejb-${version}.{tar.gz,zip} : ejb binaries (.ear files) for the Jalbiradari OpenDgroups theme</LI> <LI>dgroupsJalbiradariTheme-jar-${version}.{tar.gz,zip} : binaries (as a .jar file) for the Jalbiradari OpenDgroups theme</LI> <LI>dgroupsJalbiradariTheme-src-${version}.{tar.gz,zip} : source code for the Jalbiradari OpenDgroups theme</LI> <LI>dgroupsOneWorldTheme-ejb-${version}.{tar.gz,zip} : ejb binaries (.ear files) for the OneWorld OpenDgroups theme</LI> <LI>dgroupsOneWorldTheme-jar-${version}.{tar.gz,zip} : binaries (as a .jar file) for the OneWorld OpenDgroups theme</LI> <LI>dgroupsOneWorldTheme-src-${version}.{tar.gz,zip} : source code for the OneWorld OpenDgroups theme</LI> <LI>dgroupsPlainWhiteTheme-ejb-${version}.{tar.gz,zip} : ejb binaries (.ear files) for the PlainWhite OpenDgroups theme</LI> <LI>dgroupsPlainWhiteTheme-jar-${version}.{tar.gz,zip} : binaries (as a .jar file) for the PlainWhite OpenDgroups theme</LI> <LI>dgroupsPlainWhiteTheme-src-${version}.{tar.gz,zip} : source code for the OneWorld PlainWhite theme</LI> </UL> </P> </section> <section name="package: discussion-module"> <P>This package contains the original discussion forum module. This module has been deprecated in favour of the MailForum module (see below), but is still used by the Issue Tracker module.</P> <P>Files: <UL> <LI>discussion-deprecated-src-${version}.{tar.gz,zip} : source code for the original discussion forum module</LI> <LI>discussion-deprecated-ejb-${version}.{tar.gz,zip} : ejb binaries (.ear files) for the original discussion forum module</LI> <LI>discussion-deprecated-jar-${version}.{tar.gz,zip} : binaries (as a .jar file) for the original discussion forum module</LI> </UL> </P> </section> <section name="package: fileUpload-module"> <P>This package contains the fileUpload module. It provides a module to handle and manage uploaded files.</P> <P>Files: <UL> <LI>fileUpload-src-${version}.{tar.gz,zip} : source code for the fileUpload module</LI> <LI>fileUpload-ejb-${version}.{tar.gz,zip} : ejb binaries (.ear files) for the fileUpload module</LI> <LI>fileUpload-jar-${version}.{tar.gz,zip} : binaries (as a .jar file) for the fileUpload module</LI> </UL> </P> </section> <section name="package: issueTracker-module"> <P>This package contains the issue tracker module. It provides a issue/bug tracker for coefficient.</P> <P>Files: <UL> <LI>issueTracker-src-${version}.{tar.gz,zip} : source code for the issue tracker module</LI> <LI>issueTracker-ejb-${version}.{tar.gz,zip} : ejb binaries (.ear files) for the issue tracker module</LI> <LI>issueTracker-jar-${version}.{tar.gz,zip} : binaries (as a .jar file) for the issue tracker module</LI> </UL> </P> </section> <section name="package: mailForum-module"> <P>This package contains the mail forum module. This module replaces the discussion module above, and provides a more sophisticated discussion forum based on <a href="http://dithaka.sourceforge.net">Dithaka</a>. This forum also features integrated support with the mailing lists.</P> <P>Files: <UL> <LI>jamesMailForumResources-${version}.{tar.gz,zip} : resources needed to integrate the web discussion forums with mailing lists managed by <a href="http://dithaka.sourceforge.net">Dithaka</a> on <a href="http://james.apache.org">James</a></LI> <LI>mailForum-src-${version}.{tar.gz,zip} : source code for the original discussion forum module</LI> <LI>mailForum-ejb-${version}.{tar.gz,zip} : ejb binaries (.ear files) for the original discussion forum module</LI> <LI>mailForum-jar-${version}.{tar.gz,zip} : binaries (as a .jar file) for the original discussion forum module</LI> </UL> </P> </section> <section name="package: news-module"> <P>This package contains the news module. It provides coefficient with the ability to manage and display site/project news.</P> <P>Files: <UL> <LI>news-src-${version}.{tar.gz,zip} : source code for the news module</LI> <LI>news-ejb-${version}.{tar.gz,zip} : ejb binaries (.ear files) for the news module</LI> <LI>news-jar-${version}.{tar.gz,zip} : binaries (as a .jar file) for the news module</LI> </UL> </P> </section> <section name="package: task-module"> <P>This package contains the original task module. This module has been deprecated, but is still used by the Issue Tracker module.</P> <P>Files: <UL> <LI>task-deprecated-src-${version}.{tar.gz,zip} : source code for the task module</LI> <LI>task-deprecated-ejb-${version}.{tar.gz,zip} : ejb binaries (.ear files) for the task module</LI> <LI>task-deprecated-jar-${version}.{tar.gz,zip} : binaries (as a .jar file) for the task module</LI> </UL> </P> </section> <section name="package: vote-module"> <P>This package contains the vote module. It provides Coefficient with the ability to create and run short online polls.</P> <P>Files: <UL> <LI>vote-src-${version}.{tar.gz,zip} : source code for the vote module</LI> <LI>vote-ejb-${version}.{tar.gz,zip} : ejb binaries (.ear files) for the vote module</LI> <LI>vote-jar-${version}.{tar.gz,zip} : binaries (as a .jar file) for the vote module</LI> </UL> </P> </section> <section name="package: themes"> <P>This package contains the vote module. It provides Coefficient with the ability to create and run short online polls.</P> <P>Files: <UL> <LI>originalDarkGreenTheme-ejb-${version}.{tar.gz,zip} : ejb binaries (.ear files) for the original dark green theme</LI> <LI>originalDarkGreenTheme-jar-${version}.{tar.gz,zip} : binaries (as a .jar file) for the original dark green theme</LI> <LI>originalDarkGreenTheme-src-${version}.{tar.gz,zip} : source code for the original dark green theme</LI> <LI>plainWhiteTheme-ejb-${version}.{tar.gz,zip} : ejb binaries (.ear files) for the plain white theme</LI> <LI>plainWhiteTheme-jar-${version}.{tar.gz,zip} : binaries (as a .jar file) for the plain white theme</LI> <LI>plainWhiteTheme-src-${version}.{tar.gz,zip} : source code for the plain white theme</LI> </UL> </P> </section> <section name =""> <center> <a href="http://jakarta.apache.org/velocity/index.html"><FONT color="#ffffff"><img src="images/powered_by_velocity.gif" border="0" alt="Powered by Velocity"/> </FONT></a><a href="http://jakarta.apache.org/ant/"><FONT color="#ffffff"><img src="images/ant_logo_small.gif" border="0" alt="Powered by Ant"/> </FONT></a><a href="http://xdoclet.sf.net/"><FONT color="#ffffff"><img src="images/xdoclet_logo.gif" border="0" alt="Powered by XDoclet"/> </FONT></a><a href="http://sf.net/projects/coefficient/"><FONT color="#ffffff"><img src="http://sourceforge.net/sflogo.php?group_id=90755&type=2" border="0" alt="Hosted by SourceForge"/> <BR/> </FONT></a><a href="http://www.hibernate.org/"><FONT color="#ffffff"><img src="images/hibernate_logo.gif" border="0" alt="Works with Hibernate"/> </FONT></a><a href="http://www.jboss.org/"><FONT color="#ffffff"><img src="images/jboss-logo.gif" border="0" alt="Works with JBoss" height="50" width="108"/> </FONT></a><a href="http://www.eclipse.org/aspectj"><FONT color="#ffffff"><img src="images/aspectj_logo.gif" border="0" alt="Works with AspectJ" /> </FONT></a><a href="http://jakarta.apache.org/tomcat/"><FONT color="#ffffff"><img src="images/tomcat-logo.gif" border="0" alt="Works with Tomcat" height="50" width="108"/> </FONT></a> </center> </section> </body> </document> |
From: Pieter v. Z. <pv...@us...> - 2005-07-15 08:05:17
|
Update of /cvsroot/coefficient/coefficient In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32332 Modified Files: Tag: V0-9-6 build.xml Log Message: added make-opendgroups-all-release target Index: build.xml =================================================================== RCS file: /cvsroot/coefficient/coefficient/build.xml,v retrieving revision 1.34 retrieving revision 1.34.2.1 diff -C2 -d -r1.34 -r1.34.2.1 *** build.xml 7 Jul 2005 16:36:08 -0000 1.34 --- build.xml 15 Jul 2005 08:05:07 -0000 1.34.2.1 *************** *** 28,31 **** --- 28,34 ---- <property name="coefficient.src.all.release.file" value="coefficient-src-all-${version}.tar.gz" /> <property name="coefficient.core.src.release.file" value="coefficient-core-src-${version}" /> + <property name="coefficient.opendgroups.ejb.all.release.file" value="coefficient-opendgroups-all-${opendgroups.version}" /> + <property name="src.misc.opendgroups" value="${src.misc}/opendgroups" /> + <taskdef resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties"> *************** *** 1139,1143 **** --- 1142,1310 ---- </target> + <!-- =================================================================== --> + <!-- M A K E OPENDGROUPS E J B J A R F I L E --> + <!-- =================================================================== --> + <target name="ejb-jar-opendgroups" description="Make opendgroups ejb jar file"> + <delete> + <fileset dir="${distribution.dir}"> + <include name="**/${ejb.jar.file}" /> + </fileset> + </delete> + <!-- do this so that the module templates will be in the classpath --> + <copy todir="${classes.dir}"> + <fileset dir="${src.dir}"> + <include name="**/templates/**/*" /> + <include name="**/images/**/*" /> + <include name="**/themes/**/resource/*" /> + </fileset> + + </copy> + + <jar destfile="${distribution.dir}/${ejb.jar.file}"> + <metainf dir="${gen.misc}"> + <include name="ejb-jar.xml" /> + <include name="jboss.xml" /> + </metainf> + <fileset dir="${src.misc}"> + <include name="hibernate.properties" /> + <include name="VM_global_library.vm" /> + </fileset> + <fileset dir="${src.misc.opendgroups}"> + <include name="hibernate_util.properties" /> + <include name="coefficient.properties" /> + <include name="project.properties" /> + </fileset> + <fileset dir="${src.misc}/calendar"> + <include name="*.js" /> + <include name="*.css" /> + </fileset> + <fileset dir="${classes.dir}"> + <include name="**/aspects/**/*" /> + <include name="**/events/**/*" /> + <include name="**/modules/**/*" /> + <include name="**/themes/**/*" /> + <include name="**/interfaces/**/*" /> + <include name="**/invokers/**/*" /> + <include name="**/core/**/*" /> + <include name="**/util/**/*" /> + <include name="**/html/**/*" /> + <include name="**/authentication/**/*" /> + <include name="**/statistics/**/*" /> + <include name="**/exception/**/*" /> + <include name="**/*.vm" /> + <include name="**/*.xml" /> + <include name="**/*.properties" /> + <include name="**/*.hbm.xml" /> + <include name="**/*.gif" /> + <include name="**/*.jpg" /> + </fileset> + <fileset dir="${lib.dir}"> + <exclude name="xdoclet-*" /> + <exclude name="xjavadoc-*" /> + <exclude name="aspectjtools.jar" /> + <exclude name="ant-contrib-0.4.jar" /> + <exclude name="mail/*.jar" /> + </fileset> + </jar> + </target> + + <!-- =================================================================== --> + <!-- B U I L D E A R F I L E --> + <!-- =================================================================== --> + <target name="ear-opendgroups" depends="ejb-jar-opendgroups, war-ejb" description="Make ear file"> + + <ear earfile="${distribution.dir}/${ear.file}" appxml="${src.misc}/application.xml"> + <fileset dir="${distribution.dir}" includes="${ejb.jar.file}" /> + <fileset dir="${distribution.dir}" includes="${war.file}" /> + <fileset dir="${src.misc}" includes="jbossmq-destinations-service.xml" /> + </ear> + </target> + + <!-- =================================================================== --> + <!-- D E P L O Y E A R F I L E --> + <!-- =================================================================== --> + <target name="deploy-opendgroups" depends="generate-ejb, compile, ear-opendgroups"> + <copy todir="${jboss.deploy.dir}" overwrite="yes"> + <fileset dir="${distribution.dir}" includes="${ear.file}" /> + </copy> + </target> + + <!-- =================================================================== --> + <!-- G E N E R A T E J B O S S/E J B OPENDGROUPS R E L E A S E --> + <!-- =================================================================== --> + <target name="make-opendgroups-all-release" depends="clean,deploy-opendgroups"> + + <copy file="${src.misc}/hibernate.properties.sample" tofile="hibernate.properties" /> + + <tar destfile="${distribution.dir}/${coefficient.opendgroups.ejb.all.release.file}.tar.gz" compression="gzip"> + <tarfileset dir="${distribution.dir}"> + <include name="${ear.file}" /> + </tarfileset> + <tarfileset dir="."> + <include name="hibernate.properties" /> + </tarfileset> + <tarfileset dir="${src.misc.opendgroups}"> + <include name="INSTALL*" /> + <include name="README*" /> + </tarfileset> + <tarfileset dir="${modules.dir}/mailForum/${distribution.dir}"> + <include name="*.ear" /> + </tarfileset> + <tarfileset dir="${modules.dir}/dgroupsDefaultTheme/${distribution.dir}"> + <include name="*.ear" /> + </tarfileset> + <tarfileset dir="${modules.dir}/dgroupsJalbiradariTheme/${distribution.dir}"> + <include name="*.ear" /> + </tarfileset> + <tarfileset dir="${modules.dir}/dgroupsNavigation/${distribution.dir}"> + <include name="*.ear" /> + </tarfileset> + <tarfileset dir="${modules.dir}/dgroupsOneWorldTheme/${distribution.dir}"> + <include name="*.ear" /> + </tarfileset> + <tarfileset dir="${modules.dir}/dgroupsPlainWhiteTheme/${distribution.dir}"> + <include name="*.ear" /> + </tarfileset> + <tarfileset dir="${modules.dir}/fileUpload/${distribution.dir}"> + <include name="*.ear" /> + </tarfileset> + </tar> + + <zip destfile="${distribution.dir}/${coefficient.opendgroups.ejb.all.release.file}.zip"> + <zipfileset dir="${distribution.dir}"> + <include name="${ear.file}" /> + </zipfileset> + <zipfileset dir="."> + <include name="hibernate.properties" /> + </zipfileset> + <zipfileset dir="${src.misc.opendgroups}"> + <include name="INSTALL*" /> + <include name="README*" /> + </zipfileset> + <zipfileset dir="${modules.dir}/mailForum/${distribution.dir}"> + <include name="*.ear" /> + </zipfileset> + <zipfileset dir="${modules.dir}/dgroupsDefaultTheme/${distribution.dir}"> + <include name="*.ear" /> + </zipfileset> + <zipfileset dir="${modules.dir}/dgroupsJalbiradariTheme/${distribution.dir}"> + <include name="*.ear" /> + </zipfileset> + <zipfileset dir="${modules.dir}/dgroupsNavigation/${distribution.dir}"> + <include name="*.ear" /> + </zipfileset> + <zipfileset dir="${modules.dir}/dgroupsOneWorldTheme/${distribution.dir}"> + <include name="*.ear" /> + </zipfileset> + <zipfileset dir="${modules.dir}/dgroupsPlainWhiteTheme/${distribution.dir}"> + <include name="*.ear" /> + </zipfileset> + <zipfileset dir="${modules.dir}/fileUpload/${distribution.dir}"> + <include name="*.ear" /> + </zipfileset> + </zip> + <delete file="hibernate.properties" /> + </target> |
Update of /cvsroot/coefficient/coefficient/src/misc/opendgroups In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31736/src/misc/opendgroups Added Files: Tag: V0-9-6 project.properties INSTALL_DGROUPS_JBOSS.txt coefficient.properties hibernate_util.properties README.txt Log Message: added these properties to build coefficient-opendgroups ver 0.6 --- NEW FILE: project.properties --- ## Global Group Admin Properties for Open Dgroups 0.5 ## Uncomment out and set the value of any constants you want to change for ## the project configuration ## Defines the name of what the project will be referenced to in the system PROJECT_NAME=group ## Defines whether the project module will allow a user to edit the name EDIT_PROJECT_NAME=true ## Defines whether the project module will allow a user to edit the categories EDIT_CATEGORIES=true ## Defines whether the project module will allow a user to edit the attributes EDIT_ATTRIBUTES=false ## Defines whether the project module will allow a user to edit the attributes data EDIT_ATTRIBUTES_DATA=true ## Defines whether the project module will allow a user to manage the project versions or include them at all MANAGE_PROJECT_VERSIONS=false ## Defines whether the project module will allow a user to manage the project components or include them at all MANAGE_PROJECT_COMPONENTS=false ## Defines whether the project module will allow a user to add and remove modules from and to a project ADD_REMOVE_MODULES=false ## Defines whether the project module will allow a user to change the projectto a workflow based project CHANGE_TO_WORKFLOW=false ## Defines whether the project module will allow a user to change the projects current state if it is a workflow based project CHANGE_WORKFLOW_STATE=false ## Defines whether the project module will allow a user to change the project to a non-workflow based project CHANGE_TO_CUSTOM_PROJECT=false --- NEW FILE: INSTALL_DGROUPS_JBOSS.txt --- Install Open Dgroups on JBoss Open Dgroups powered by Coefficient - open source project based collaboration platform Open Dgroups version 0.6 Coefficient version 0.9.6 12 July 2005 Requirement Notes: To run Open Dgroups you must have installed the following on your machine: * 1. at least j2sdk-1.4.1 * 2. JBoss-3.2.x * 3. coefficient-opendgroups-all-0.9.6.tar.gz * 4. james-2.2.0 * 5. jamesMailForumResources-0.9.6.tar.gz * 6. dithaka-base-0.7.tar.gz * 7. dithaka-james-0.7.tar.gz Install and Configure James 1. Install the James-2.2.0 mail server - we will refer to this location as {JAMES_HOME}. 2. Extract the contents of the jamesMailForumResources-x.x.tar.gz, dithaka-base-x.x.tar.gz and dithaka-james.x.x.tar.gz. From here on this document will refer to the location of the extracted files as {RESOURCES_HOME}. 3. You must first copy the downloaded jar files into the James deployment. Copy {RESOURCES_HOME}/lib/*.jar to {JAMES_HOME}/lib . 4. Setup your database and include the JDBC jar in the {JAMES_HOME}/lib directory so James can see it in its classpath. 5. You must make sure that your hibernate.properties is setup to reference the database that you setup in the last step. A sample hibernate.properties can be found in the root directory of the James Mail Forum Resources installation. Five properties must be changed: hibernate.connection.username={username_for_your_db} hibernate.connection.password={password_for_your_db} hibernate.dialect={hibernate_dialect_for_your_db} hibernate.connection.driver_class={driver_class_for_your_db} hibernate.connection.url={jdbc_url_for_your_db} The other properties stay unchanged. 6. Once the hibernate.properties file is correct you must make a jar file that contains the file. To make a jar do: 'jar cvf hibernateProperties.jar hibernate.properties' You must then place the jar file you created into the {JAMES_HOME}/lib directory. 7. The next thing you must do is setup the config.xml file for James. This file has some Coefficient and Open Dgroups specific mailet and matchers. NOTE: James only creates some files and directories during the first time it run. Therefore you should startup James (as a privileged user since it runs on a port below 1000) to see the directory structures we are talking about in the next statements. There are several configuration settings to be made in the {RESOURCE_HOME}/config.xml file: - If you are using an SMTP gateway, find the gateway property. There is text that reads, {YOUR_GATEWAY_GOES_HERE}. Replace this text with your networks gateway address. Modify the gateway Port if yours is not port 25. If tyou are not using a gateway, comment the two lines out. - If you are using James as a standalone SMTP server, set your server name in the James configuration block:: <servername>your.servername.net</servername> - Enable the RemoteAddreNotInNetwork matcher in the Transport block by removing the comments and adding your server IP address. <mailet match="RemoteAddrNotInNetwork=127.0.0.1,xxx.xxx.xxx.xxx" class="ToProcessor"> <processor> relay-denied </processor> <notice>550 - Requested action not taken: relaying denied</notice> </mailet> - Change the default login and password. This is required to set up al local administrator account. Next copy the {RESOURCE_HOME}/config.xml to {JAMES_HOME}/apps/james/SAR-INF/config.xml. 8. Start James. Install and Configure JBOSS 1. The system has been tested under JBoss-3.2.x and this build includes only JBoss specific deployment descriptors. To run this code under a different application server you are on your own and you should build the system from the Coefficient CVS. 2. NOTE: Coefficient uses jfreechart to generate graphs for project statistics. JBoss ships with an older version of the jfreechart jars so these must be removed for the statistics functionality to work. These jars are included in the jmx management console, so the easiest thing to do is not deploy it. This can be accomplished by moving the following directories out of the deployment directories: {JBOSS_HOME}/server/all/deploy/management and {JBOSS_HOME}/server/default/deploy/management Some windowing environments display the following error in the JBoss server log: "java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable." To correct add the following line to {JBOSS_HOME}/bin/run.conf: JAVA_OPTS="-Djava.awt.headless=true $JAVA_OPTS" 3. NOTE: if you are using JBoss-3.2.1 you must fix an incorrectly set property in the {JBOSS_HOME}/server/default/conf/jboss-server.xml file: Change <attribute name="RecursiveSearch">False</attribute> to <attribute name="RecursiveSearch">True</attribute> 4. NOTE: If you are running JBoss-3.2.6 or higher you must remove the included hibernate2.jar because coefficient uses a patched hibernate2.jar so that it can create the tables at runtime. The jars in JBoss can be found here: {JBOSS_HOME}/server/all/lib/hibernate2.jar and {JBOSS_HOME}/server/default/lib/hibernate2.jar Configure the database 1. Create a database instance, user account and password. 2. Setup the Jboss datasource and call it CoefficientDS. Save to the {JBOSS_HOME}/server/default/deploy directory. An example for PostgreSQL is available to download on www.opendgroups.net. Save the JDBC jar for your database in the lib directory so JBoss can see it in its classpath. 3. You must make sure that your hibernate.properties is setup to reference the CoefficientDS datasource. Extract the sample hibernate.properties file from the root directory of the downloaded coefficient-opendgroups-all-x.x file. Three properties must be changed: hibernate.connection.username={username_for_your_db} hibernate.connection.password={password_for_your_db} hibernate.dialect={hibernate_dialect_for_your_db} The other properties stay unchanged. Configure and deploy Coefficient 1. Once your hibernate.properties file is correct you must insert it into the coefficient.x.x.ear file together with three other Open Dgroups specific configurations files - coefficient.properties, hibernate_util.properties and project.properties.) Extract coefficient.xx.ear and the properties files from coefficient-opendgroups-all-x.x.tar.gz. Use either updateAllPropertiesEAR.sh or updateAllPropertiesEAR.bat. These scripts expect that the files coefficient-x.x.ear and and the four properties files are in the same directory that you are running the script from. It also expects that 'jar' is available to the system. Executing this script simply re-packages the .ear placing the properties files in the correct place. 2. To deploy the system copy coefficient-x.x.ear to the {JBOSS_HOME}/server/default/deploy directory. Next extract the following Open Dgroup modules from coefficient-opendgroups-all.tar.gz and copy to the {JBOSS_HOME}/server/default/deploy directory. dgroupsDefaultTheme-x.x.ear dgroupsJalbiradariTheme-x.x.ear dgroupsNavigation-x.x.ear dgroupsOneWorldTheme-x.x.ear dgroupsPlainWhiteTheme-x.x.ear fileUpload-x.x.ear mailforum-x.x.ear NOTE: There is a known issue with the system. If JBoss deploys a module before the core has been deployed it will freak out since the module depends on classes and libs contained in the core. JBoss will deploy the latest timestamped .ear last so this can be avoided by copying the core (coefficient-x.x.ear) first and any modules after. 3. You should be up and running. Point your browser at whatever url you have configured JBoss to run on, the context for the project is setup as the root and the entry servlet responds to index.html, usually: http://localhost:8080/index.html 4. The system will initially prompt for some needed properties before you can start using it. These are a valid email address to use as site administrator the name of the James smtp host: MAIL_SMTP_HOST={my.smtp.host} MAIL_SENDER_ADDRESS={my.email.address} ALIAS_MAIL_HOST_ADDRESS={my.smtp.host} NOTE: the system will be unable to send user confirmations or project confirmations if these are not set. You may want to modify the location that uploaded files are stored, this can be done by setting the property: FILEUPLOAD_SAVE_PATH={path.to.where.you.store.fileUploads} 5. Fill these in and click save. Do not change JNDI, JMS settings since this binary build has deployment descriptors pointing to the default values. 6. The default password and username is 'admin', 'admin'. 7. To be able to use the default Open Dgroups Category List you need to download the following file: categories.sql, and upload it into the database using the following commands (if you are using postgreSQL): su postgres cat categories.sql | psql databasename 8. Enjoy! --- NEW FILE: coefficient.properties --- ## Uncomment out and set the value of any constants you want to change for ## the system ## Defines the name of the site as referenced in the title CFG_SITENAME=Dgroups ## Defines the footer message displayed on the site CFG_FOOT1=Footer Message ## The maximum size of a file that can be uploaded to the server in bytes MAX_FILE_UPLOAD_SIZE_BYTES=10485760 ## The date format used within the project SYSTEM_DATE_FORMAT=dd/MM/yyyy ## The datasource name used by this installation DATA_SOURCE_NAME=java:/CoefficientDS ## The connection factory used in the application server used to deploy JMS_CONNECTION_FACTORY=java:/ConnectionFactory ## The name of the deployed queue used to keep track of statistics JMS_STATISTICS_QUEUE=queue/statisticsQueue ## The string used to store the current user of the system in the session USER_SESSION_STRING=__current_user_obj_ ## The JNDI Context prefix for the system ## NOTE do not change this unless you have changed the deployment info as well JNDI_CONTEXT=za/org/coefficient/ ## The max number of elements to show on a page with a pager MAX_ELEMENTS_PER_PAGE=3 ## The default theme to use on startup DEFAULT_THEME_JNDI_NAME=dgroupsDefaultTheme ## This is the SMTP host that coefficient should use to send mail MAIL_SMTP_HOST= ## This is the address that the mail will have as a return MAIL_SENDER_ADDRESS= ## This is the address that mailforum mail uses as an alias ALIAS_MAIL_HOST_ADDRESS= ## This is the path that file uploads are saved in... path MUST end with a trailing path seperator eg 'C:\\files\\' FILEUPLOAD_SAVE_PATH=./ ## This is the module that should serve as the welcome page if you are not logged in WELCOME_MODULE=Home ## This limits the number of mail forums that can be created MAX_NUM_OF_FORUMS=1 --- NEW FILE: README.txt --- Open Dgroups: Based on Coefficient - open source project based collaboration platform ==================================================================================== version 0.6 14 July 2005 Open Dgroups ============ Open Dgroups is the prime candidate for the open source version of the Dgroups web site. Dgroups is an online home for groups and communities interested in international development. In Dgroups, one can find the online tools and services needed to support the activities of a team, a group, a network, a partnership or a community. Dgroups is a place to find groups who are interested in the same topics in international development as you. If you are an International Development practitioner, please refer to the Dgroups.org website for details of how to become part of the Dgroups community. For more details visit: opendgroups.net Coefficient: ============= Coefficient is a scalable open source project based collaboration platform that can run in J2EE and web application containers. It currently provides basic collaboration tools as hot deployable modules. It also provides a workflow engine to help guide projects through their development cycle. These are the Coefficient modules that are core to Open Dgroups: * the Coefficient core module with some core themes. An ejb and a web module is available. * dgroupsDefaultTheme * dgroupsJalbiradariTheme * dgroupsNavigation * dgroupsOneWorldTheme * dgroupsPlainWhiteTheme * fileUpload * mailForum Please read the INSTALL_DGROUPS_JBOSS.txt for installation instructions --- NEW FILE: hibernate_util.properties --- ## This is a properties file for the HibernateUtil ## Defines the class that contains my data loading method #data_loader_class=za.org.coefficient.util.ejb.DataLoaderUtil data_loader_class=za.org.coefficient.themes.dgroupsDefaultTheme.DgroupsDataLoaderUtil ## Defines the method to call to load my default data data_loader_method=initializeDataIfNeeded ## Defines the classes that I want to have configured in ## Hibernate at initialization class_1=za.org.coefficient.statistics.data.ModuleStatisticsData class_2=za.org.coefficient.statistics.data.ModuleStatistics class_3=za.org.coefficient.statistics.data.ProjectStatisticsData class_4=za.org.coefficient.statistics.data.ProjectStatistics class_5=za.org.coefficient.core.Project class_6=za.org.coefficient.core.Category class_7=za.org.coefficient.core.ProjectAttribute class_8=za.org.coefficient.core.ProjectAttributeData class_9=za.org.coefficient.core.ProjectComponent class_10=za.org.coefficient.core.ProjectVersion class_11=za.org.coefficient.core.AttributeElement class_12=za.org.coefficient.core.CoefficientConfiguration class_13=za.org.coefficient.authentication.CoefficientUser class_14=za.org.coefficient.authentication.Role class_15=za.org.coefficient.authentication.ProjectMember class_16=za.co.csir.icomtek.workflow.WorkflowData ## Defines the JTA Transaction Managers location by default ## it is java:/TransactionManager jta_transaction_manager=java:/TransactionManager ## Defines whether the HibernateUtil should create tables ## for configured objects that do not yet have a table ## This requires a patched jar of Hibernate, and defaults ## to true. create_tables=true |
From: Pieter v. Z. <pv...@us...> - 2005-07-15 08:00:02
|
Update of /cvsroot/coefficient/coefficient/src/misc/opendgroups In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31628/src/misc/opendgroups Log Message: Directory /cvsroot/coefficient/coefficient/src/misc/opendgroups added to the repository --> Using per-directory sticky tag `V0-9-6' |
From: Pieter v. Z. <pv...@us...> - 2005-07-12 10:19:59
|
Update of /cvsroot/coefficient/mailForum In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9840/modules/mailForum Modified Files: build.xml Log Message: removed - in resource tar.gz file name Index: build.xml =================================================================== RCS file: /cvsroot/coefficient/mailForum/build.xml,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** build.xml 7 Jul 2005 14:40:15 -0000 1.10 --- build.xml 12 Jul 2005 10:19:44 -0000 1.11 *************** *** 12,16 **** <property name="james.jar.file" value="coefficient-mailForum4james.jar" /> <property name="hibernate.properties.file" value="/${coefficient.path}/src/misc/hibernate.properties.webapp.sample" /> ! <property name="james.release.file" value="jamesMailForumResources-${version}-.tar.gz" /> <property name="tmp.release.dir" value="tmp/lib" /> --- 12,16 ---- <property name="james.jar.file" value="coefficient-mailForum4james.jar" /> <property name="hibernate.properties.file" value="/${coefficient.path}/src/misc/hibernate.properties.webapp.sample" /> ! <property name="james.release.file" value="jamesMailForumResources-${version}.tar.gz" /> <property name="tmp.release.dir" value="tmp/lib" /> |