Changeset 1346 for extensions/net.sf.basedb.examples/trunk
- Timestamp:
- Apr 18, 2011, 2:37:44 PM (12 years ago)
- Location:
- extensions/net.sf.basedb.examples/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.examples/trunk
- Property svn:ignore
-
old new 4 4 .project 5 5 .classpath 6 extension-examples.jar7 extension-examples*.tar.gz6 base-examples.jar 7 base-examples*.tar.gz 8 8 build.properties
-
- Property svn:ignore
-
extensions/net.sf.basedb.examples/trunk/META-INF/extensions.xml
r1273 r1346 9 9 code example. 10 10 </description> 11 <version>1.2</version> 11 <version>1.3pre</version> 12 <min-base-version>3.0</min-base-version> 13 <copyright>BASE development team</copyright> 12 14 <url>http://baseplugins.thep.lu.se/wiki/net.sf.basedb.examples.extensions</url> 15 <email>basedb-users@lists.sourceforge.net</email> 13 16 </about> 14 17 <extension -
extensions/net.sf.basedb.examples/trunk/README
r1271 r1346 1 1 == Requirements == 2 2 3 1. BASE 2.17or later.3 1. BASE 3.0 or later. 4 4 5 5 == Introduction == … … 37 37 38 38 1. Unpack the tar.gz file to a directory of your choice. 39 2. Copy the extension-examples.jar to your BASE extensions directory: WEB-INF/extensions. 40 3. Run the ''Extensions -> Manual scan'' command if you have disabled automatic 41 installation. Otherwise, just wait a bit and the automatic installation will 42 find and install the new extensions. 39 2. Copy the extension-examples.jar to your BASE plug-ins directory as 40 configured in base.config[plugins.dir] setting. 41 3. Run the ''Extensions -> Manual scan'' command and click the 'Start' 42 button. If all goes well several new extensions and more should 43 now be installed. 43 44 4. If you are logged in, you may have to logout and then login again to see 44 45 the new menu items, or use the ''File -> Reload permissions'' menu. … … 59 60 1. Type `ant download-lib` to automatically download the BASE core JAR file that 60 61 are neeed for compilation. You can also do this manually by copying the 61 BASE2Core.jar and BASE2Webclient.jar files from the BASE installation directory62 (<basedir>/www/WEB-INF/lib/) to the ./lib/compile directory.62 base-core-3.0.0.jar and base-webclient-3.0.0.jar files from the BASE installation 63 directory (<basedir>/www/WEB-INF/lib/) to the ./lib/compile directory. 63 64 64 65 2. Type 'ant' to compile the code and generate the 'extension-examples.jar' … … 66 67 the intructions above. 67 68 68 3. Use 'ant package' to create a downloadable tar.gz package. 69 3. Use 'ant package' to create a downloadable tar.gz. 70 71 4. If you create a file called 'build.properties' and enter a the path to the 72 plug-ins directory under the key 'base.plugins', you can simply type 73 'ant install' to copy the examples to the BASE plug-ins directory. -
extensions/net.sf.basedb.examples/trunk/RELEASE
r1096 r1346 13 13 2. Update the version number. 14 14 15 * In build.xml: <property name="version" value="A.B" /> 16 * In META-INF/extensions.xml: <version>A.B</version> 17 15 In build.xml: 16 <property name="version" value="A.B" /> 17 18 Run `ant update-version`. This should put the version 19 numbers in a lot of files, including, 20 META-INF/extensions.xml. 21 22 Check (and update if needed) the README file and 23 and the wiki pages (see also step 8 and 9 below): 24 25 http://baseplugins.thep.lu.se/wiki/net.sf.basedb.examples 26 http://baseplugins.thep.lu.se/wiki/PluginDownload 27 18 28 3. Make sure that the code compiles and can be packaged. 19 29 20 30 ant package 21 31 22 will create the file ' example-extensions-A.B.tar.gz' in32 will create the file 'base-examples-A.B.tar.gz' in 23 33 the project directory. 24 34 -
extensions/net.sf.basedb.examples/trunk/build.xml
r1274 r1346 9 9 10 10 <!-- variables used --> 11 <property name="name" value=" extension-examples" />11 <property name="name" value="base-examples" /> 12 12 <property name="version" value="1.3pre" /> 13 13 <property name="src" location="src" description="Location of source 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.0"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 … … 118 122 <target 119 123 name="checkjar" 120 description="Checks that the BASE2Core.jar and BASE2Webclient.jar exists."124 description="Checks that the base-core-${depend.base-version}.jar and base-webclient-${depend.base-version}.jar exists." 121 125 > 122 126 <available classname="net.sf.basedb.core.Application" … … 124 128 <available classname="net.sf.basedb.clients.web.Base" 125 129 classpathref="classpath" property="base2web" /> 126 <fail unless="base2core" message="Can't find BASE2Core.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." />127 <fail unless="base2web" message="Can't find BASE2Webclient.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." />128 <echo>Found BASE2Core.jar and BASE2Webclient.jar.</echo>130 <fail unless="base2core" message="Can't find base-core-${depend.base-version}.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." /> 131 <fail unless="base2web" message="Can't find base-webclient-${depend.base-version}.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." /> 132 <echo>Found all requried BASE core JAR files.</echo> 129 133 </target> 130 134 131 135 <target 136 name="install" 137 depends="build" 138 > 139 <fail unless="base.plugins" message="base.plugins is not set to the path of BASE plug-ins directory." /> 140 <copy todir="${base.plugins}"> 141 <fileset file="${jar.name}" /> 142 </copy> 143 <echo>Copied '${jar.name}' to '${base.plugins}'.</echo> 144 </target> 145 146 <target name="update-version"> 147 <echo>Setting version to: ${version}</echo> 148 149 <echo>extensions.xml</echo> 150 <replaceregexp 151 file="META-INF/extensions.xml" 152 match="<version>.*</version>" 153 replace="<version>${version}</version>" 154 encoding="UTF-8" 155 /> 156 157 <echo>Don't forget to commit the changes to the subversion repository!</echo> 158 </target> 159 160 161 <target 132 162 name="download-lib" 133 description="Download BASE2Core.jar, BASE2Webclient.jar and BASE2CorePlugins.jar."163 description="Download base-core-3.x.jar and base-webclient-3.x.jar." 134 164 > 135 165 <echo> … … 140 170 ------------------------------------------------------- 141 171 </echo> 142 <download-lib file=" BASE2Core.jar" />143 <download-lib file=" BASE2Webclient.jar" />172 <download-lib file="base-core-${depend.base-version}.jar" /> 173 <download-lib file="base-webclient-${depend.base-version}.jar" /> 144 174 </target> 145 175 -
extensions/net.sf.basedb.examples/trunk/lib/compile
- Property svn:ignore
-
old new 1 BASE2Core.jar 2 BASE2Webclient.jar 1 base-*.jar
-
- Property svn:ignore
-
extensions/net.sf.basedb.examples/trunk/lib/compile/readme.txt
r691 r1346 4 4 root directory to download those files automatically. 5 5 6 * BASE2Core.jar7 * BASE2Webclient.jar6 * base-core-3.0.0.jar 7 * base-webclient-3.0.0.jar
Note: See TracChangeset
for help on using the changeset viewer.