Changeset 844
- Timestamp:
- Dec 1, 2008, 5:24:41 PM (15 years ago)
- Location:
- plugins/base1/se.lu.thep.wenni/trunk
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/base1/se.lu.thep.wenni/trunk/ChangeLog
r827 r844 46 46 - Changed project site URL. 47 47 - Added more checks on required build tools. 48 48 - Using external abstract class when building Java wrapper. 49 - Automatic download of required BASE components. 50 49 51 version 0.6 (revision 92): 50 52 - Minor changes, basically a maintenence version. -
plugins/base1/se.lu.thep.wenni/trunk/INSTALL
r838 r844 62 62 server. 63 63 64 == Short instructions == 65 66 It can be this easy: 67 68 1. Download and unpack WeNNI and `cd` to the root directory of the 69 distribution. 70 71 2. If you haven't access to a BASE2 installation or prefer to use the 72 standard compilation components, run the configure script with 73 74 $ `./configure --with-plugindir=/path/to/base/plugin-directory/wenni` 75 $ `make` 76 $ `make check` 77 $ `make install` 78 79 If you have probems check the pre-requisites below. 80 64 81 == Pre-requisite == 65 82 66 83 1. Java 1.6. 67 84 68 2. A working BASE2 installation or Internet connection. The BASE85 2. A working BASE2 installation or Internet connection. Some BASE2 69 86 program libraries are required for the creation of the wrapper 70 plug-in. If no local BASE installation is available the required71 packages will be downloaded automatically.87 plug-in. Required libraries will be downloaded automatically, or 88 local libraries can be used. 72 89 73 90 3. Version x of net.sf.basedb. .... package. Needed for creation of 74 the Java wrapper. The package is downloaded during the compilation75 process.91 the Java wrapper. If the package is not available it will 92 automatically be downloaded during the compilation process. 76 93 77 94 4. BASE 2.9 or later for plug-in use. Earlier versions may work but … … 81 98 programs can be run manually, see README for details. 82 99 100 == Automatic download of required BASE components == 101 102 During the build process and depending on configuration options, 103 required program libraries will be downloaded from the official base 104 sites, http://base2.thep.lu.se and http://baseplugins.thep.lu.se. If 105 you feel uncomfortable with this procedure you need to do some manual 106 work. 107 108 1. If you have no working BASE2 installation, download the latest 109 BASE2 binary package from http://base.thep.lu.se and unpack 110 it. There is no need for further work, use the created directory 111 as the path for the `--with-basedir` option given to the configure 112 script below. 113 114 2. Download the PluginsUtilites package from 115 http://base.thep.lu.se/wiki/se.lu.thep.WeNNI and place the package 116 file in directory `base/base2`. The install process will use this 117 file automatically but beware, a `make distclean` will erase the 118 file (but `make clean` will not). This WeNNI package is known to 119 work with version 0.1 of the PluginUtilities package (only the 120 latest known version will be given here), and the stated version 121 is the one automatically downloaded in the build process. 122 83 123 == Building and installing the plug-in (WeNNI and the Java wrapper) == 84 124 … … 90 130 91 131 $ `./configure` 132 133 This will automatically download required BASE related libraries 134 from the official BASE package repositories (see output from the 135 configure scipt on details about the downloads). 92 136 93 137 There is a possiblity to use the build tools to automatically … … 97 141 $ `./configure --with-plugindir=DIR` 98 142 99 The default plug-in installation directory is inthe directory143 The default plug-in installation directory is the directory 100 144 plugins/se/lu/thep/wenni rooted in `basedir`. 101 145 … … 107 151 108 152 $ `./configure --with-basedir=/path/to/base` 153 154 where `/path/to/base` should point to the directory containing 155 directory `www`. 109 156 110 157 Some notes on configure options: … … 251 298 script is written in Perl. 252 299 300 == Short instructions == 301 302 It can be this easy: 303 304 1. Download and unpack WeNNI and `cd` to the root directory of the 305 distribution. 306 307 2. Do 308 309 $ `./configure --enable-state=stand-alone` 310 $ `make` 311 $ `make check` 312 $ `make install` 313 253 314 == Pre-requisite == 254 315 -
plugins/base1/se.lu.thep.wenni/trunk/base/base2/Makefile.am
r837 r844 34 34 clean-local:; @( rm -rf *.jar *.class *~ $(TOPBUILDDIR)) 35 35 36 distclean-local: clean-local 37 @( rm -rf $(PLUGINutilities)*) 38 36 39 37 40 install-exec-local: $(JAR) … … 39 42 test -z "$(bindir)" || $(MKDIR_P) "$(bindir)" 40 43 $(INSTALL) "$(JAR)" "$(bindir)" 44 $(INSTALL) "$(PLUGINutilities)/$(PLUGINutilities).jar" "$(bindir)" 41 45 42 $(JAR): $(BUILDDIR) $( CLASS)46 $(JAR): $(BUILDDIR) $(PLUGINutilities) $(CLASS) 43 47 @echo Creating $(JAR) 44 48 @(cd $(TOPBUILDDIR) ; \ … … 54 58 @$(MKDIR_P) $@ 55 59 60 $(PLUGINutilities): $(PLUGINutilities).tgz 61 tar zxpf $< 62 63 $(PLUGINutilities).tgz: 64 wget $(PLUGINutilitiesURLpart)/$@ -
plugins/base1/se.lu.thep.wenni/trunk/base/base2/WeNNI.java
r824 r844 25 25 package se.lu.thep.wenni; 26 26 27 import se.lu.thep.wenni.RunBinaryPlugin;27 import net.sf.basedb.plugins.AbstractRunBinaryPlugin; 28 28 29 29 import net.sf.basedb.core.DbControl; … … 56 56 57 57 public class WeNNI 58 extends RunBinaryPlugin58 extends AbstractRunBinaryPlugin 59 59 { 60 60 -
plugins/base1/se.lu.thep.wenni/trunk/configure.ac
r843 r844 54 54 AC_PROG_RANLIB 55 55 AC_PROG_SED 56 57 # existence of wget and tar should be checked 56 58 57 59 AM_CXXFLAGS="-Wall -pedantic" … … 83 85 AM_CONDITIONAL([BASE2], [test x$state = xbase2]) 84 86 87 AC_ARG_ENABLE(downloadBASE2API, 88 [AS_HELP_STRING([--enable-downloadBASE2API=ARG], 89 [enable download of required BASE2 API files])], 90 [DOWNLOADBASE2API=true],[DOWNLOADBASE2API=false]) 91 85 92 AC_ARG_WITH(basedir,[AS_HELP_STRING([--with-basedir=DIR], 86 93 [root directory for base installation])], 87 [BASEDIR=$withval ],[BASEDIR=/usr/local/base])94 [BASEDIR=$withval DOWNLOADBASE2API=false],[BASEDIR=/usr/local/base]) 88 95 89 96 AC_ARG_WITH(plugindir,[AS_HELP_STRING([--with-plugindir=DIR], 90 [ root directory for base plug-ins])],97 [the base plug-in install directory])], 91 98 [PLUGINDIR=$withval], 92 99 [if (test x$state = xbase1); then … … 114 121 AC_SUBST(BASEPLUGINEXECNAME) 115 122 AC_CONFIG_FILES([base/base1/base_plugin_script/plugin_WeNNI.base]) 116 fi 117 if (test x$state = xbase2); then 118 AC_CHECK_FILE([$BASEDIR/www/WEB-INF/lib/BASE2Core.jar], [], 119 [AC_MSG_FAILURE([cannot find BASE2Core.jar])]) 120 JAVACFLAGS=$BASEDIR/www/WEB-INF/lib/BASE2Core.jar 121 AC_CHECK_FILE([$BASEDIR/www/WEB-INF/lib/BASE2CorePlugins.jar], [], 122 [AC_MSG_FAILURE([cannot find BASE2CorePlugins.jar])]) 123 JAVACFLAGS="$BASEDIR/www/WEB-INF/lib/BASE2CorePlugins.jar:$JAVACFLAGS" 123 elif (test x$state = xbase2); then 124 if (test $DOWNLOADBASE2API = false); then 125 AC_CHECK_FILE([$BASEDIR/www/WEB-INF/lib/BASE2Core.jar], [], 126 [AC_MSG_FAILURE([cannot find BASE2Core.jar])]) 127 JAVACFLAGS+=$BASEDIR/www/WEB-INF/lib/BASE2Core.jar 128 AC_CHECK_FILE([$BASEDIR/www/WEB-INF/lib/BASE2CorePlugins.jar], [], 129 [AC_MSG_FAILURE([cannot find BASE2CorePlugins.jar])]) 130 JAVACFLAGS="$BASEDIR/www/WEB-INF/lib/BASE2CorePlugins.jar:$JAVACFLAGS" 131 fi 132 PLUGINutilitiesURLpart="http://www.thep.lu.se/~jari" 133 PLUGINutilities=AbstractRunBinaryPlugin-0.1pre 134 JAVACFLAGS="$JAVACFLAGS:./$PLUGINutilities/$PLUGINutilities.jar" 135 AC_SUBST(PLUGINutilities) 136 AC_SUBST(PLUGINutilitiesURLpart) 124 137 AC_SUBST(JAVACFLAGS) 138 fi 139 if (test x$state = xbase1 || test x$state = xbase2); then 140 # Change binary installation directory, is this kosher? 141 bindir=$PLUGINDIR 125 142 fi 126 143 … … 166 183 # Some more messages. 167 184 AC_MSG_NOTICE([]) 168 AC_MSG_NOTICE([ Ready to build WeNNI package containing]) 169 AC_MSG_NOTICE([]) 170 AC_MSG_NOTICE([ stand-alone binaries:]) 171 AC_MSG_NOTICE([ NNIFileConverter]) 172 AC_MSG_NOTICE([ nni]) 185 AC_MSG_NOTICE([Ready to build WeNNI package containing]) 186 AC_MSG_NOTICE([]) 173 187 if (test x$state = xbase1); then 174 AC_MSG_NOTICE([ BASE1 plug-in:]) 175 AC_MSG_NOTICE([ BaseFileConverter]) 176 AC_MSG_NOTICE([ base_plugin_script]) 177 fi 178 if (test x$state = xbase2); then 179 AC_MSG_NOTICE([ BASE2 plug-in:]) 180 AC_MSG_NOTICE([ WeNNI.jar]) 181 fi 182 AC_MSG_NOTICE([]) 183 AC_MSG_NOTICE([ WeNNI package will be installed in]) 184 AC_MSG_NOTICE([ $PLUGINDIR ]) 185 AC_MSG_NOTICE([]) 186 AC_MSG_NOTICE([ The following libs and flags will be used:]) 187 AC_MSG_NOTICE([ +++++++++++++++++++++++++++++++++++++++++++++++]) 188 AC_MSG_NOTICE([BASE1 plug-in files:]) 189 AC_MSG_NOTICE([ NNIFileConverter]) 190 AC_MSG_NOTICE([ nni]) 191 AC_MSG_NOTICE([ BaseFileConverter]) 192 AC_MSG_NOTICE([ base_plugin_script]) 193 AC_MSG_NOTICE([]) 194 AC_MSG_NOTICE([WeNNI plug-in binaries will be installed in]) 195 AC_MSG_NOTICE([ $PLUGINDIR ]) 196 elif (test x$state = xbase2); then 197 AC_MSG_NOTICE([BASE2 plug-in files:]) 198 AC_MSG_NOTICE([ nni]) 199 AC_MSG_NOTICE([ WeNNI.jar]) 200 AC_MSG_NOTICE([ $PLUGINutilities.jar]) 201 AC_MSG_NOTICE([]) 202 AC_MSG_NOTICE([If not already there, downloading]) 203 AC_MSG_NOTICE([ $PLUGINutilitiesURLpart/$PLUGINutilities]) 204 AC_MSG_NOTICE([]) 205 if (test $DOWNLOADBASE2API = true ); then 206 AC_MSG_NOTICE([Downloading required BASE2 API from ...]) 207 else 208 AC_MSG_NOTICE([Using local BASE2 API in directory]) 209 AC_MSG_NOTICE([ $BASEDIR]) 210 fi 211 AC_MSG_NOTICE([]) 212 AC_MSG_NOTICE([WeNNI plug-in binaries will be installed in]) 213 AC_MSG_NOTICE([ $PLUGINDIR ]) 214 else 215 AC_MSG_NOTICE([stand-alone binaries:]) 216 AC_MSG_NOTICE([ NNIFileConverter]) 217 AC_MSG_NOTICE([ nni]) 218 fi 219 AC_MSG_NOTICE([]) 220 AC_MSG_NOTICE([The following libs and flags will be used:]) 221 AC_MSG_NOTICE([+++++++++++++++++++++++++++++++++++++++++++++++]) 188 222 AC_MSG_NOTICE([ CPPFLAGS = $CPPFLAGS $AM_CPPFLAGS]) 189 223 AC_MSG_NOTICE([ CXXFLAGS = $CXXFLAGS $AM_CXXFLAGS]) … … 193 227 AC_MSG_NOTICE([ BASECPPFLAGS = $BASECPPFLAGS]) 194 228 AC_MSG_NOTICE([ BASELDFLAGS = $BASELDFLAGS]) 195 fi 196 if (test x$state = xbase2); then 197 AC_MSG_NOTICE([ JAVACFLAGS=\"$JAVACFLAGS\"]) 198 fi 199 AC_MSG_NOTICE([ +++++++++++++++++++++++++++++++++++++++++++++++]) 229 elif (test x$state = xbase2); then 230 AC_MSG_NOTICE([ JAVACFLAGS = $JAVACFLAGS]) 231 fi 232 AC_MSG_NOTICE([+++++++++++++++++++++++++++++++++++++++++++++++]) 200 233 AC_MSG_NOTICE([]) 201 234 AC_MSG_NOTICE([ Now type 'make ; make check ; make install'.])
Note: See TracChangeset
for help on using the changeset viewer.