diff options
| author | iwakeh <iwakeh@torproject.org> | 2016-11-01 17:37:46 +0100 |
|---|---|---|
| committer | iwakeh <iwakeh@torproject.org> | 2016-11-02 12:50:00 +0100 |
| commit | 8419a062967efcf25359d7c3c88c972afac177c0 (patch) | |
| tree | 233aad44c54bade7ecb76d043b946fb3f57e9b69 | |
| parent | 0282b71ddf312d6715d89b79122dbe71b39e8673 (diff) | |
More adaptions toward the general metrics project structure.task-20523
Removed obsolete git-submodule.
| -rw-r--r-- | .gitmodules | 3 | ||||
| -rw-r--r-- | README | 2 | ||||
| -rw-r--r-- | build.xml | 39 | ||||
| m--------- | deps/metrics-lib | 0 | ||||
| -rw-r--r-- | src/main/resources/ExoneraTor.properties (renamed from res/ExoneraTor.properties) | 0 | ||||
| -rw-r--r-- | src/main/resources/ExoneraTor_de.properties (renamed from res/ExoneraTor_de.properties) | 0 | ||||
| -rw-r--r-- | src/main/resources/config (renamed from config.template) | 0 | ||||
| -rwxr-xr-x | src/main/resources/db/exonerator.sql (renamed from db/exonerator.sql) | 0 | ||||
| -rw-r--r-- | src/main/resources/logging.properties (renamed from etc/logging.properties) | 0 | ||||
| -rw-r--r-- | src/main/webapp/context.xml (renamed from etc/context.xml.template) | 0 | ||||
| -rw-r--r-- | src/main/webapp/css/bootstrap.min.css (renamed from web/css/bootstrap.min.css) | 0 | ||||
| -rw-r--r-- | src/main/webapp/css/exonerator.css (renamed from web/css/exonerator.css) | 0 | ||||
| -rw-r--r-- | src/main/webapp/images/exonerator-logo.png (renamed from web/images/exonerator-logo.png) | bin | 70763 -> 70763 bytes | |||
| -rw-r--r-- | src/main/webapp/images/exonerator-wordmark.png (renamed from web/images/exonerator-wordmark.png) | bin | 14543 -> 14543 bytes | |||
| -rw-r--r-- | src/main/webapp/images/favicon.ico (renamed from web/images/favicon.ico) | bin | 1150 -> 1150 bytes | |||
| -rw-r--r-- | src/main/webapp/web.xml (renamed from etc/web.xml) | 0 |
16 files changed, 22 insertions, 22 deletions
diff --git a/.gitmodules b/.gitmodules index c6b6388..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "deps/metrics-lib"] - path = deps/metrics-lib - url = https://git.torproject.org/metrics-lib @@ -73,7 +73,7 @@ $ sudo -u postgres createdb -O exonerator exonerator 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 Confirm that the database now contains tables to hold ExoneraTor data. In @@ -2,31 +2,30 @@ <!-- Define build paths. --> <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="classes" value="classes"/> + <property name="classes" value="${generated}/classes"/> + <property name="dist" value="${generated}/dist"/> <property name="testresources" value="src/test/resources/"/> <property name="libs" value="lib"/> - <property name="config" value="etc"/> - <property name="webxmlfile" value="${config}/web.xml"/> - <property name="contextxmltemplate" - value="${config}/context.xml.template"/> - <property name="contextxml" value="${config}/context.xml"/> - <property name="warfile" value="exonerator.war"/> + <property name="webxmlfile" value="src/main/webapp/web.xml"/> + <property name="warfile" value="${dist}/exonerator.war"/> <property name="source-and-target-java-version" value="1.7" /> <property name="descriptorversion" value="1.5.0" /> <path id="classpath"> <pathelement path="${classes}"/> <fileset dir="${libs}"> <include name="descriptor-${descriptorversion}.jar"/> + <include name="commons-compress-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="servlet-api-3.0.jar"/> - <include name="commons-lang-2.6.jar"/> <include name="logback-core-1.1.2.jar" /> <include name="logback-classic-1.1.2.jar" /> <include name="slf4j-api-1.7.7.jar"/> - <include name="commons-compress-1.9.jar"/> <include name="xz-1.5.jar"/> </fileset> </path> @@ -36,11 +35,16 @@ </fileset> </path> + <target name="clean"> + <delete includeEmptyDirs="true" quiet="true"> + <fileset dir="${generated}" defaultexcludes="false" includes="**" /> + </delete> + </target> + <target name="init"> - <copy file="${contextxmltemplate}" tofile="${contextxml}"/> - <copy file="config.template" tofile="config"/> + <copy file="${resources}/config" tofile="${basedir}/config"/> <mkdir dir="${classes}"/> - <mkdir dir="${generated}"/> + <mkdir dir="${dist}"/> </target> <!-- Compile all servlets and plain Java classes. --> @@ -99,7 +103,8 @@ depends="compile"> <war destfile="${warfile}" webxml="${webxmlfile}"> - <fileset dir="web"/> + <fileset dir="${webapp}" includes="css/*"/> + <fileset dir="${webapp}" includes="images/*"/> <lib dir="${libs}"> <include name="commons-codec-1.9.jar"/> <include name="commons-lang-2.6.jar"/> @@ -107,11 +112,9 @@ </lib> <classes dir="${classes}"/> <zipfileset dir="${resources}" - prefix="WEB-INF/classes"/> - <zipfileset dir="${config}" prefix="WEB-INF/classes" - includes="logging.properties"/> - <metainf dir="${config}" + excludes="config **/db/* db" /> + <metainf dir="${webapp}" includes="context.xml"/> </war> </target> diff --git a/deps/metrics-lib b/deps/metrics-lib deleted file mode 160000 -Subproject bd18dd0d2f788d1d4ee7acbac5032e97264bb85 diff --git a/res/ExoneraTor.properties b/src/main/resources/ExoneraTor.properties index 6fa3081..6fa3081 100644 --- a/res/ExoneraTor.properties +++ b/src/main/resources/ExoneraTor.properties diff --git a/res/ExoneraTor_de.properties b/src/main/resources/ExoneraTor_de.properties index 9a594d8..9a594d8 100644 --- a/res/ExoneraTor_de.properties +++ b/src/main/resources/ExoneraTor_de.properties diff --git a/config.template b/src/main/resources/config index 0ea8b0e..0ea8b0e 100644 --- a/config.template +++ b/src/main/resources/config diff --git a/db/exonerator.sql b/src/main/resources/db/exonerator.sql index ab2a5d0..ab2a5d0 100755 --- a/db/exonerator.sql +++ b/src/main/resources/db/exonerator.sql diff --git a/etc/logging.properties b/src/main/resources/logging.properties index 44fbbbe..44fbbbe 100644 --- a/etc/logging.properties +++ b/src/main/resources/logging.properties diff --git a/etc/context.xml.template b/src/main/webapp/context.xml index 1cf53c5..1cf53c5 100644 --- a/etc/context.xml.template +++ b/src/main/webapp/context.xml diff --git a/web/css/bootstrap.min.css b/src/main/webapp/css/bootstrap.min.css index d65c66b..d65c66b 100644 --- a/web/css/bootstrap.min.css +++ b/src/main/webapp/css/bootstrap.min.css diff --git a/web/css/exonerator.css b/src/main/webapp/css/exonerator.css index a94fd54..a94fd54 100644 --- a/web/css/exonerator.css +++ b/src/main/webapp/css/exonerator.css diff --git a/web/images/exonerator-logo.png b/src/main/webapp/images/exonerator-logo.png Binary files differindex 3a31110..3a31110 100644 --- a/web/images/exonerator-logo.png +++ b/src/main/webapp/images/exonerator-logo.png diff --git a/web/images/exonerator-wordmark.png b/src/main/webapp/images/exonerator-wordmark.png Binary files differindex eaa93fc..eaa93fc 100644 --- a/web/images/exonerator-wordmark.png +++ b/src/main/webapp/images/exonerator-wordmark.png diff --git a/web/images/favicon.ico b/src/main/webapp/images/favicon.ico Binary files differindex 48060b1..48060b1 100644 --- a/web/images/favicon.ico +++ b/src/main/webapp/images/favicon.ico diff --git a/etc/web.xml b/src/main/webapp/web.xml index ce12489..ce12489 100644 --- a/etc/web.xml +++ b/src/main/webapp/web.xml |
