Skip to content

Commit

Permalink
xml
Browse files Browse the repository at this point in the history
  • Loading branch information
kreon committed Jun 20, 2015
1 parent bcc4fd7 commit bae5e9b
Show file tree
Hide file tree
Showing 9 changed files with 327 additions and 178 deletions.
39 changes: 34 additions & 5 deletions docs/bin/run.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,35 @@
#!/bin/sh
CLASSPATH=".";
for I in ../lib/*.jar; do
CLASSPATH="$CLASSPATH:$I"
done
java -Xmx100m -server -cp "$CLASSPATH" jnode.main.Main ../etc/jnode.nix.conf
ROOT="`dirname $(readlink -f $0)`/../"
PIDFILE="$ROOT/jnode.pid";
JAR="$ROOT/lib"

cd $ROOT
if [ "$1" == "" ]; then
echo "Usage: $0 (stop|start|restart|build)"
fi
case "$1" in
start)
if [ -f $PIDFILE ]; then
echo "jNode already running..."
exit
fi
for I in $JAR/*.jar; do A="$A:$I"; done
nohup java -Xmx300m -server -cp "$A" jnode.main.Main jnode.conf &
echo -ne $! > $PIDFILE
;;
stop)
if [ -f $PIDFILE ]; then
kill `cat $PIDFILE`
rm -f $PIDFILE
fi
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 (stop|start|restart)"
exit 0;
;;
esac

40 changes: 0 additions & 40 deletions jnode-assembly/distribution-core.xml

This file was deleted.

110 changes: 110 additions & 0 deletions jnode-assembly/distribution-dev.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>dev-${buildNumber}</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<moduleSets>
<moduleSet>
<useAllReactorProjects>true</useAllReactorProjects>
<includes>
<include>jnode:jnode-core</include>
<include>jnode:jnode-dumb-module</include>
<include>jnode:jnode-httpd-module</include>
<include>jnode:jnode-mail-module</include>
<include>jnode:jnode-nntp</include>
<include>jnode:jnode-pointchecker-module</include>
<include>jnode:jnode-rss</include>
<include>jnode:jnode-xmpp</include>
</includes>
<binaries>
<outputDirectory>jnode/lib</outputDirectory>
<unpack>false</unpack>
<dependencySets>
<dependencySet>
<unpack>false</unpack>
<scope>runtime</scope>
<outputDirectory>jnode/lib</outputDirectory>
</dependencySet>
</dependencySets>
</binaries>
</moduleSet>
</moduleSets>

<fileSets>
<fileSet>
<directory>${basedir}/../jdbc-drivers</directory>
<outputDirectory>jnode/lib</outputDirectory>
<includes>
<include>*.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>${basedir}/../docs/nodelist</directory>
<outputDirectory>jnode/nodelist</outputDirectory>
<includes>
<include>NODELIST</include>
</includes>
</fileSet>
<fileSet>
<directory>${basedir}/../docs/bin</directory>
<outputDirectory>jnode/bin</outputDirectory>
<includes>
<include>*.*</include>
</includes>
</fileSet>
<fileSet>
<directory>${basedir}/../docs/docs</directory>
<outputDirectory>jnode/docs</outputDirectory>
<includes>
<include>*.*</include>
</includes>
</fileSet>
<fileSet>
<directory>${basedir}/../docs/configs</directory>
<outputDirectory>jnode/etc</outputDirectory>
<includes>
<include>*.*</include>
</includes>
</fileSet>
<fileSet>
<directory>./</directory>
<outputDirectory>jnode/files</outputDirectory>
<excludes>
<exclude>*/**</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>./</directory>
<outputDirectory>jnode/inbound</outputDirectory>
<excludes>
<exclude>*/**</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>./</directory>
<outputDirectory>jnode/log</outputDirectory>
<excludes>
<exclude>*/**</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>./</directory>
<outputDirectory>jnode/tmp</outputDirectory>
<excludes>
<exclude>*/**</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>${basedir}/..</directory>
<outputDirectory>jnode/</outputDirectory>
<includes>
<include>LICENSE</include>
<include>NOTICE</include>
</includes>
</fileSet>
</fileSets>
</assembly>
40 changes: 0 additions & 40 deletions jnode-assembly/distribution-rss.xml

This file was deleted.

106 changes: 106 additions & 0 deletions jnode-assembly/distribution-stable.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>stable-${buildNumber}</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<moduleSets>
<moduleSet>
<useAllReactorProjects>true</useAllReactorProjects>
<includes>
<include>jnode:jnode-core</include>
<include>jnode:jnode-httpd-module</include>
<include>jnode:jnode-mail-module</include>
<include>jnode:jnode-rss</include>
</includes>
<binaries>
<outputDirectory>jnode/lib</outputDirectory>
<unpack>false</unpack>
<dependencySets>
<dependencySet>
<unpack>false</unpack>
<scope>runtime</scope>
<outputDirectory>jnode/lib</outputDirectory>
</dependencySet>
</dependencySets>
</binaries>
</moduleSet>
</moduleSets>

<fileSets>
<fileSet>
<directory>${basedir}/../jdbc-drivers</directory>
<outputDirectory>jnode/lib</outputDirectory>
<includes>
<include>*.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>${basedir}/../docs/nodelist</directory>
<outputDirectory>jnode/nodelist</outputDirectory>
<includes>
<include>NODELIST</include>
</includes>
</fileSet>
<fileSet>
<directory>${basedir}/../docs/bin</directory>
<outputDirectory>jnode/bin</outputDirectory>
<includes>
<include>*.*</include>
</includes>
</fileSet>
<fileSet>
<directory>${basedir}/../docs/docs</directory>
<outputDirectory>jnode/docs</outputDirectory>
<includes>
<include>*.*</include>
</includes>
</fileSet>
<fileSet>
<directory>${basedir}/../docs/configs</directory>
<outputDirectory>jnode/etc</outputDirectory>
<includes>
<include>*.*</include>
</includes>
</fileSet>
<fileSet>
<directory>./</directory>
<outputDirectory>jnode/files</outputDirectory>
<excludes>
<exclude>*/**</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>./</directory>
<outputDirectory>jnode/inbound</outputDirectory>
<excludes>
<exclude>*/**</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>./</directory>
<outputDirectory>jnode/log</outputDirectory>
<excludes>
<exclude>*/**</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>./</directory>
<outputDirectory>jnode/tmp</outputDirectory>
<excludes>
<exclude>*/**</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>${basedir}/..</directory>
<outputDirectory>jnode/</outputDirectory>
<includes>
<include>LICENSE</include>
<include>NOTICE</include>
</includes>
</fileSet>
</fileSets>
</assembly>
Loading

0 comments on commit bae5e9b

Please sign in to comment.