Changeset 1424 for extensions/net.sf.basedb.reggie/branches
- Timestamp:
- Oct 28, 2011, 12:54:22 PM (12 years ago)
- Location:
- extensions/net.sf.basedb.reggie/branches/2.0-dev
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/branches/2.0-dev/.classpath
r1361 r1424 3 3 <classpathentry kind="src" path="src"/> 4 4 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/> 5 <classpathentry kind="lib" path="lib/compile/BASE2Core.jar" sourcepath="/trunk/src/core"/>6 <classpathentry kind="lib" path="lib/compile/BASE2Webclient.jar"/>7 5 <classpathentry kind="lib" path="lib/compile/servlet-api.jar"/> 8 <classpathentry kind="lib" path="lib/compile/BASE2WSClient.jar"/>9 6 <classpathentry kind="lib" path="lib/compile/json_simple-1.1.jar"/> 7 <classpathentry kind="lib" path="lib/compile/base-core-3.0.0.jar"/> 8 <classpathentry kind="lib" path="lib/compile/base-webclient-3.0.0.jar"/> 9 <classpathentry kind="lib" path="lib/compile/base-webservices-client-3.0.0.jar"/> 10 10 <classpathentry kind="output" path="build"/> 11 11 </classpath> -
extensions/net.sf.basedb.reggie/branches/2.0-dev/META-INF/extensions.xml
r1378 r1424 7 7 and samples. 8 8 </description> 9 <version>1.6-dev</version> 9 <version>2.0-dev</version> 10 <min-base-version>3.0.0</min-base-version> 10 11 <copyright>BASE development team</copyright> 11 12 <email>basedb-users@lists.sourceforge.net</email> -
extensions/net.sf.basedb.reggie/branches/2.0-dev/README
r1371 r1424 1 1 == Requirements == 2 2 3 1. BASE 2.17.1or later.3 1. BASE 3.0 or later. 4 4 5 5 == Introduction == … … 11 11 http://baseplugins.thep.lu.se/wiki/net.sf.basedb.reggie 12 12 13 == Installation ==13 == Installation and updating == 14 14 15 15 1. Download the reggie-*.tar.gz file. 16 16 2. Unpack the downloaded file to a directory of your choice. 17 3. Copy the 'reggie.jar' file to your BASE extensions directory: 18 WEB-INF/extensions 19 4. Run the 'Extensions->Manual scan' command if you have disabled automatic 20 installation. Otherwise, just wait a bit and the automatic installation will 21 find and install the new extension. 22 5. Log in as a user with Administrator priviliges. 17 3. Copy the 'reggie.jar' file to your BASE plug-ins directory. 18 Eg. the directory specified by the 'plugins.dir' setting in 'base.config'. 19 4. Log in to BASE as a user with Administrator priviliges. 20 5. Go to 'Administrate->Plug-ins & Extensions->Overview' page. 21 Run the installation wizard and select to install/update 'reggie.jar'. 23 22 6. Create a project and set it as the active project. This step is 24 23 optional but is recommended. Running Reggie without an active project … … 33 32 9. Done. 34 33 35 36 34 == Using == 37 35 … … 76 74 2. Type `ant download-lib` to automatically download the BASE core JAR files that 77 75 are neeed for compilation. You can also do this manually by copying the 78 BASE2Core.jar, BASE2Webclient.jar and BASE2WSClient.jar 79 from the BASE installation directory (<basedir>/www/WEB-INF/lib/) to the 80 ./lib/compile directory. 76 base-*.jar files from the BASE installation directory 77 (<basedir>/www/WEB-INF/lib/) to the ./lib/compile directory. 81 78 82 79 3. Type 'ant' to compile the code and generate the 'reggie.jar' file -
extensions/net.sf.basedb.reggie/branches/2.0-dev/RELEASE
r1357 r1424 11 11 sure. 12 12 13 2. Update the version number .13 2. Update the version numbers. 14 14 15 15 In build.xml: 16 16 <property name="version" value="A.B" /> 17 <property name="depend.base-version" value="..." /> 17 18 18 19 Run `ant update-version`. This should put the version -
extensions/net.sf.basedb.reggie/branches/2.0-dev/build.xml
r1378 r1424 10 10 <!-- variables used --> 11 11 <property name="name" value="reggie" /> 12 <property name="version" value=" 1.6-dev" />12 <property name="version" value="2.0-dev" /> 13 13 <property name="src" location="src" description="Location of source files" /> 14 14 <property name="build" location="build" description="Location of compiled files" /> … … 21 21 <property name="javac.target" value="1.6" /> 22 22 <property name="javac.encoding" value="UTF-8" /> 23 <property name="depend.base-version" 24 value="3.0.0" 25 description="The BASE version that this project depends on." 26 /> 23 27 <property name="depend.jars" 24 value="http://base2.thep.lu.se/base/jars/ 2.17.1"25 description="The location of the BASE core JARs that we depend on"28 value="http://base2.thep.lu.se/base/jars/${depend.base-version}" 29 description="The location of the BASE core JARs that this project depends on." 26 30 /> 27 31 … … 89 93 depends="build" 90 94 > 91 <fail unless="base. home" message="base.home is not set to the path of BASE installation." />92 <copy todir="${base. home}/www/WEB-INF/extensions">95 <fail unless="base.plugins" message="base.plugins is not set to the path of BASE plug-ins directory." /> 96 <copy todir="${base.plugins}"> 93 97 <fileset file="${jar.name}" /> 94 98 </copy> 95 96 </target> 99 <echo>Copied '${jar.name}' to '${base.plugins}'.</echo> 100 </target> 101 97 102 98 103 <target … … 126 131 <target 127 132 name="checkjar" 128 description="Checks that the BASE2Core.jar, BASE2Webclient.jar and BASE2WSClient.jar exists."133 description="Checks that required BASE JAR files exists" 129 134 > 130 135 <available classname="net.sf.basedb.core.Application" 131 classpathref="classpath" property="base 2core" />136 classpathref="classpath" property="base-core" /> 132 137 <available classname="net.sf.basedb.clients.web.Base" 133 classpathref="classpath" property="base 2web" />138 classpathref="classpath" property="base-web" /> 134 139 <available classname="net.sf.basedb.info.BioAssaySetInfo" 135 classpathref="classpath" property="base2webservice" /> 136 137 <fail unless="base2core" message="Can't find BASE2Core.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." /> 138 <fail unless="base2web" message="Can't find BASE2Webclient.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." /> 139 <fail unless="base2webservice" message="Can't find BASE2WSClient.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." /> 140 <echo>Found BASE2Core.jar and BASE2Webclient.jar.</echo> 140 classpathref="classpath" property="base-webservice" /> 141 <fail unless="base-core" message="Can't find base-core-${depend.base-version}.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." /> 142 <fail unless="base-web" message="Can't find base-webclient-${depend.base-version}.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." /> 143 <fail unless="base-webservice" message="Can't find base-webservices-client-${depend.base-version}.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." /> 144 <echo>Found all requried BASE core JAR files.</echo> 141 145 </target> 142 146 143 147 <target 144 148 name="download-lib" 145 description="Download BASE2Core.jar, BASE2Webclient.jar and BASE2WSClient.jar."149 description="Download required BASE core jar files" 146 150 > 147 151 <echo> … … 152 156 ------------------------------------------------------- 153 157 </echo> 154 <download-lib file=" BASE2Core.jar" />155 <download-lib file=" BASE2Webclient.jar" />156 <download-lib file=" BASE2WSClient.jar" />158 <download-lib file="base-core-${depend.base-version}.jar" /> 159 <download-lib file="base-webclient-${depend.base-version}.jar" /> 160 <download-lib file="base-webservices-client-${depend.base-version}.jar" /> 157 161 </target> 158 162 … … 188 192 encoding="UTF-8" 189 193 /> 194 <replaceregexp 195 file="META-INF/extensions.xml" 196 match="<min-base-version>.*</min-base-version>" 197 replace="<min-base-version>${depend.base-version}</min-base-version>" 198 encoding="UTF-8" 199 /> 190 200 191 201 <echo>Don't forget to commit the changes to the subversion repository!</echo> -
extensions/net.sf.basedb.reggie/branches/2.0-dev/lib/compile/readme.txt
r1282 r1424 4 4 root directory to download those files automatically. 5 5 6 * BASE2Core.jar 7 * BASE2Webclient.jar 6 * base-core-3.0.0.jar 7 * base-webclient-3.0.0.jar 8 * base-webservices-client-3.0.0.jar -
extensions/net.sf.basedb.reggie/branches/2.0-dev/src/net/sf/basedb/reggie/Reggie.java
r1409 r1424 30 30 The current version of this package. 31 31 */ 32 public static final String VERSION = " 1.6-dev";32 public static final String VERSION = "2.0-dev"; 33 33 34 34 /** -
extensions/net.sf.basedb.reggie/branches/2.0-dev/src/net/sf/basedb/reggie/dao/Case.java
r1366 r1424 66 66 merged = true; 67 67 caseQuery = Sample.getQuery(); 68 caseQuery.join(Hql.innerJoin(" sourceEvents", "src"));69 caseQuery.join(Hql.innerJoin(" src", "event", "evt"));68 caseQuery.join(Hql.innerJoin("childCreationEvents", "cce")); 69 caseQuery.join(Hql.innerJoin("cce", "event", "evt")); 70 70 caseQuery.join(Hql.innerJoin("evt", "bioMaterial", "bm")); // 'bm' should now refernce a specimen tube 71 71 caseQuery.restrict(Restrictions.rlike(Hql.property("bm", "name"), Expressions.parameter("name", "^" + name + "\\.[0-9]+$", Type.STRING))); 72 72 caseQuery.setDistinct(true); 73 73 74 System.out.println("cq:" + caseQuery);75 74 cases = caseQuery.list(dc); 76 75 -
extensions/net.sf.basedb.reggie/branches/2.0-dev/src/net/sf/basedb/reggie/dao/Patient.java
r1333 r1424 11 11 import net.sf.basedb.core.Item; 12 12 import net.sf.basedb.core.ItemQuery; 13 import net.sf.basedb.core.Sample; 13 14 import net.sf.basedb.core.query.Annotations; 14 15 import net.sf.basedb.reggie.Reggie; … … 61 62 { 62 63 Patient patient = null; 63 BioSource b = theCase.getSample().getBioSource(); 64 Sample s = theCase.getSample(); 65 BioSource b = s.getParentType() == Item.BIOSOURCE ? (BioSource)s.getParent() : null; 64 66 if (b != null) 65 67 { -
extensions/net.sf.basedb.reggie/branches/2.0-dev/src/net/sf/basedb/reggie/servlet/PartitionRegistrationServlet.java
r1419 r1424 204 204 dc.saveItem(hisSample); 205 205 206 hisSample.setPooled(true);207 206 BioMaterialEvent creationEvent = hisSample.getCreationEvent(); 208 creationEvent.addSource( specimen,hisWeight);207 creationEvent.addSource(hisSample).setUsedQuantity(hisWeight); 209 208 210 209 Reggie.setAnnotationValue(hisSample, partitionDateType, partitionDate); -
extensions/net.sf.basedb.reggie/branches/2.0-dev/src/net/sf/basedb/reggie/servlet/PersonalRegistrationServlet.java
r1359 r1424 334 334 Reggie.setAnnotationValue(theCase, lateralityType, laterality); 335 335 } 336 theCase. setBioSource(patient);336 theCase.getCreationEvent().setSource(patient); 337 337 dc.saveItem(theCase); 338 338 jsonMessages.add("Case '" + originalCaseName + "' created successfully."); … … 359 359 JSONObject jsonSpec = (JSONObject)jsonSpecimen.get(i); 360 360 Sample specimen = Sample.getById(dc, ((Number)jsonSpec.get("id")).intValue()); 361 // Set specimen to 'pooled' and link with case 362 specimen.setPooled(true); 363 specimen.getCreationEvent().addSource(theCase, null); 361 // Link the specimen with the case 362 specimen.getCreationEvent().setSource(theCase); 364 363 365 364 // Update the specimen annotations -
extensions/net.sf.basedb.reggie/branches/2.0-dev/src/net/sf/basedb/reggie/servlet/SpecimenTubeServlet.java
r1413 r1424 26 26 import net.sf.basedb.core.query.Restrictions; 27 27 import net.sf.basedb.reggie.Reggie; 28 import net.sf.basedb.reggie.converter.DateToStringConverter;29 28 import net.sf.basedb.reggie.converter.StringToDateConverter; 30 29 import net.sf.basedb.reggie.dao.Case;
Note: See TracChangeset
for help on using the changeset viewer.