Skip to content

Commit

Permalink
- updates to yacyVersion parser (remove old targets)
Browse files Browse the repository at this point in the history
- added javadoc target to built script (does not work yet without errors)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6312 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Sep 14, 2009
1 parent 1ddaf16 commit 2e41e10
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
14 changes: 14 additions & 0 deletions build.xml
Expand Up @@ -44,6 +44,7 @@
<property name="libt" location="libt"/>
<property name="libbuild" location="libbuild"/>
<property name="build" location="classes"/>
<property name="javadoc" location="api"/>
<property name="htroot" location="htroot"/>
<property name="test" location="test"/>
<property name="langstats" location="langstats"/>
Expand Down Expand Up @@ -156,6 +157,18 @@
<copy file="${src}/de/anomic/yacy/yacyBuildProperties.java" tofile="${build}/de/anomic/yacy/yacyBuildProperties.java" overwrite="true" filtering="true" />

</target>

<target name="javadoc" depends="init" description="make javadoc for YaCy core">
<javadoc destdir="${javadoc}"
windowtitle="YaCy API"
encoding="UTF-8"
charset="UTF-8"
access="private">
<fileset dir="${src}">
<include name="**/*.java"/>
</fileset>
</javadoc>
</target>

<target name="compile" depends="init" description="compile YaCy core and YaCy servlets">
<!-- defining the classpath that should be used for compiling -->
Expand Down Expand Up @@ -613,6 +626,7 @@
<delete dir="${release_main}" failonerror="false"/>
<delete file="${build}/de/anomic/yacy/yacyBuildProperties.java" failonerror="false"/>
<delete file="yacy.exe" failonerror="false"/>
<delete file="${lib}/yacycore.jar" failonerror="false"/>
<delete file="${lib}/svnRevNr.jar" failonerror="false"/>
<delete file="${libbuild}/svnRevNr.jar" failonerror="false"/>
<delete failonerror="false">
Expand Down
6 changes: 1 addition & 5 deletions source/de/anomic/yacy/yacyVersion.java
Expand Up @@ -47,11 +47,7 @@ public yacyVersion(String release) {
}
// cut off tail
release = release.substring(0, release.length() - ((release.endsWith(".gz")) ? 7 : 4));
if (release.startsWith("yacy_pro_v")) {
release = release.substring(10);
} else if (release.startsWith("yacy_emb_v")) {
throw new RuntimeException("release file name '" + release + "' is not valid, no support for emb");
} else if (release.startsWith("yacy_v")) {
if (release.startsWith("yacy_v")) {
release = release.substring(6);
} else {
throw new RuntimeException("release file name '" + release + "' is not valid, wrong prefix");
Expand Down

0 comments on commit 2e41e10

Please sign in to comment.