More adaptions toward the general metrics project structure.

Removed obsolete git-submodule.
This commit is contained in:
iwakeh 2016-11-01 17:37:46 +01:00
parent 0282b71ddf
commit 8419a06296
16 changed files with 22 additions and 23 deletions

3
.gitmodules vendored
View File

@ -1,3 +0,0 @@
[submodule "deps/metrics-lib"]
path = deps/metrics-lib
url = https://git.torproject.org/metrics-lib

2
README
View File

@ -73,7 +73,7 @@ $ sudo -u postgres createdb -O exonerator exonerator
Import the exonerator database schema. Import the exonerator database schema.
$ psql -f /srv/exonerator.torproject.org/exonerator/db/exonerator.sql \ $ psql -f /srv/exonerator.torproject.org/exonerator/src/main/resources/db/exonerator.sql \
exonerator exonerator
Confirm that the database now contains tables to hold ExoneraTor data. In Confirm that the database now contains tables to hold ExoneraTor data. In

View File

@ -2,31 +2,30 @@
<!-- Define build paths. --> <!-- Define build paths. -->
<property name="sources" value="src/main/java"/> <property name="sources" value="src/main/java"/>
<property name="resources" value="res"/> <property name="resources" value="src/main/resources"/>
<property name="webapp" value="src/main/webapp"/>
<property name="generated" value="generated/"/> <property name="generated" value="generated/"/>
<property name="classes" value="classes"/> <property name="classes" value="${generated}/classes"/>
<property name="dist" value="${generated}/dist"/>
<property name="testresources" value="src/test/resources/"/> <property name="testresources" value="src/test/resources/"/>
<property name="libs" value="lib"/> <property name="libs" value="lib"/>
<property name="config" value="etc"/> <property name="webxmlfile" value="src/main/webapp/web.xml"/>
<property name="webxmlfile" value="${config}/web.xml"/> <property name="warfile" value="${dist}/exonerator.war"/>
<property name="contextxmltemplate"
value="${config}/context.xml.template"/>
<property name="contextxml" value="${config}/context.xml"/>
<property name="warfile" value="exonerator.war"/>
<property name="source-and-target-java-version" value="1.7" /> <property name="source-and-target-java-version" value="1.7" />
<property name="descriptorversion" value="1.5.0" /> <property name="descriptorversion" value="1.5.0" />
<path id="classpath"> <path id="classpath">
<pathelement path="${classes}"/> <pathelement path="${classes}"/>
<fileset dir="${libs}"> <fileset dir="${libs}">
<include name="descriptor-${descriptorversion}.jar"/> <include name="descriptor-${descriptorversion}.jar"/>
<include name="commons-compress-1.9.jar"/>
<include name="commons-codec-1.9.jar"/> <include name="commons-codec-1.9.jar"/>
<include name="commons-lang-2.6.jar"/>
<include name="gson-2.2.4.jar" />
<include name="postgresql-jdbc4-9.2.jar"/> <include name="postgresql-jdbc4-9.2.jar"/>
<include name="servlet-api-3.0.jar"/> <include name="servlet-api-3.0.jar"/>
<include name="commons-lang-2.6.jar"/>
<include name="logback-core-1.1.2.jar" /> <include name="logback-core-1.1.2.jar" />
<include name="logback-classic-1.1.2.jar" /> <include name="logback-classic-1.1.2.jar" />
<include name="slf4j-api-1.7.7.jar"/> <include name="slf4j-api-1.7.7.jar"/>
<include name="commons-compress-1.9.jar"/>
<include name="xz-1.5.jar"/> <include name="xz-1.5.jar"/>
</fileset> </fileset>
</path> </path>
@ -36,11 +35,16 @@
</fileset> </fileset>
</path> </path>
<target name="clean">
<delete includeEmptyDirs="true" quiet="true">
<fileset dir="${generated}" defaultexcludes="false" includes="**" />
</delete>
</target>
<target name="init"> <target name="init">
<copy file="${contextxmltemplate}" tofile="${contextxml}"/> <copy file="${resources}/config" tofile="${basedir}/config"/>
<copy file="config.template" tofile="config"/>
<mkdir dir="${classes}"/> <mkdir dir="${classes}"/>
<mkdir dir="${generated}"/> <mkdir dir="${dist}"/>
</target> </target>
<!-- Compile all servlets and plain Java classes. --> <!-- Compile all servlets and plain Java classes. -->
@ -99,7 +103,8 @@
depends="compile"> depends="compile">
<war destfile="${warfile}" <war destfile="${warfile}"
webxml="${webxmlfile}"> webxml="${webxmlfile}">
<fileset dir="web"/> <fileset dir="${webapp}" includes="css/*"/>
<fileset dir="${webapp}" includes="images/*"/>
<lib dir="${libs}"> <lib dir="${libs}">
<include name="commons-codec-1.9.jar"/> <include name="commons-codec-1.9.jar"/>
<include name="commons-lang-2.6.jar"/> <include name="commons-lang-2.6.jar"/>
@ -107,11 +112,9 @@
</lib> </lib>
<classes dir="${classes}"/> <classes dir="${classes}"/>
<zipfileset dir="${resources}" <zipfileset dir="${resources}"
prefix="WEB-INF/classes"/>
<zipfileset dir="${config}"
prefix="WEB-INF/classes" prefix="WEB-INF/classes"
includes="logging.properties"/> excludes="config **/db/* db" />
<metainf dir="${config}" <metainf dir="${webapp}"
includes="context.xml"/> includes="context.xml"/>
</war> </war>
</target> </target>

1
deps/metrics-lib vendored

@ -1 +0,0 @@
Subproject commit bd18dd0d2f788d1d4ee7acbac5032e97264bb855

View File

Before

Width:  |  Height:  |  Size: 69 KiB

After

Width:  |  Height:  |  Size: 69 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB