<commit_before><!--
BEL Framework Webservice Plugin

URLs: http://openbel.org/
Copyright (C) 2012, Selventa

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<project name="belframework-webservice-plugin" default="deploy">
	<property file="../build.properties" />

	<property name="license" value="COPYING" />
    <property name="dist.path" value="dist" />
    <property name="src.path" value="src" />
    <property name="compile.path" value="bin" />
    <property name="jar.version" value="0.9-SNAPSHOT" />
    <property name="jar.name"
              value="belframework_webservice_${jar.version}.jar" />
    <property name="src.jar.name"
              value="belframework_webservice_source_${jar.version}.jar" />
    <property name="deploy.path"
              value="${CYTOSCAPE_HOME}/plugins/${jar.name}" />
    <property name="bel.jar.path" value="${BELFRAMEWORK_HOME}/lib/webapiclient/org.openbel.framework.ws.model-${BELFRAMEWORK_VERSION}.jar" />

    <path id="classpath">
        <pathelement location="${CYTOSCAPE_HOME}/cytoscape.jar" />
        <pathelement location="${bel.jar.path}" />
    </path>

    <target name="clean">
        <delete dir="${compile.path}" />
        <delete dir="${dist.path}" />
    </target>

    <target name="compile" depends="clean">
        <fail message="BELFRAMEWORK_HOME must be configured in build.properties"
              unless="BELFRAMEWORK_HOME" />
        <fail message="CYTOSCAPE_HOME must be configured in build.properties."
              unless="CYTOSCAPE_HOME" />

        <mkdir dir="${compile.path}" />

        <javac includeantruntime="false"
               srcdir="${src.path}"
               destdir="${compile.path}"
               debuglevel="lines,vars,source"
               debug="off">
            <classpath refid="classpath" />
        </javac>
    </target>

    <target name="package" depends="compile">
        <fail message="BELFRAMEWORK_HOME must be configured in build.properties"
              unless="BELFRAMEWORK_HOME" />
        <fail message="CYTOSCAPE_HOME must be configured in build.properties."
              unless="CYTOSCAPE_HOME" />

        <jar destfile="${dist.path}/${jar.name}" basedir="${compile.path}">
            <fileset dir="${src.path}" includes="**/*.props" />

            <zipfileset src="${bel.jar.path}"
                        includes="**/*.java **/*.class" />

            <manifest>
                <attribute name="Cytoscape-Plugin"
                           value="org.openbel.belframework.webservice.ClientPlugin" />
            </manifest>
        	
            <!-- include license -->
            <metainf file="${license}" />
        </jar>
    </target>

    <target name="package-source">
        <jar destfile="${dist.path}/${src.jar.name}" basedir="${src.path}">
            <!-- include license -->
            <metainf file="${license}" />
        </jar>
    </target>

    <target name="deploy" depends="package">
        <delete file="${deploy.path}" />
        <mkdir dir="${dist.path}" />
        <copy file="${dist.path}/${jar.name}" tofile="${deploy.path}" />
    </target>

    <target name="distribute">
        <antcall target="package" /><commit_msg>Fixed manifest file<commit_after><!--
BEL Framework Webservice Plugin

URLs: http://openbel.org/
Copyright (C) 2012, Selventa

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<project name="belframework-webservice-plugin" default="deploy">
	<property file="../build.properties" />

	<property name="license" value="COPYING" />
    <property name="dist.path" value="dist" />
    <property name="src.path" value="src" />
    <property name="compile.path" value="bin" />
    <property name="jar.version" value="0.9-SNAPSHOT" />
    <property name="jar.name"
              value="belframework_webservice_${jar.version}.jar" />
    <property name="src.jar.name"
              value="belframework_webservice_source_${jar.version}.jar" />
    <property name="deploy.path"
              value="${CYTOSCAPE_HOME}/plugins/${jar.name}" />
    <property name="bel.jar.path" value="${BELFRAMEWORK_HOME}/lib/webapiclient/org.openbel.framework.ws.model-${BELFRAMEWORK_VERSION}.jar" />

    <path id="classpath">
        <pathelement location="${CYTOSCAPE_HOME}/cytoscape.jar" />
        <pathelement location="${bel.jar.path}" />
    </path>

    <target name="clean">
        <delete dir="${compile.path}" />
        <delete dir="${dist.path}" />
    </target>

    <target name="compile" depends="clean">
        <fail message="BELFRAMEWORK_HOME must be configured in build.properties"
              unless="BELFRAMEWORK_HOME" />
        <fail message="CYTOSCAPE_HOME must be configured in build.properties."
              unless="CYTOSCAPE_HOME" />

        <mkdir dir="${compile.path}" />

        <javac includeantruntime="false"
               srcdir="${src.path}"
               destdir="${compile.path}"
               debuglevel="lines,vars,source"
               debug="off">
            <classpath refid="classpath" />
        </javac>
    </target>

    <target name="package" depends="compile">
        <fail message="BELFRAMEWORK_HOME must be configured in build.properties"
              unless="BELFRAMEWORK_HOME" />
        <fail message="CYTOSCAPE_HOME must be configured in build.properties."
              unless="CYTOSCAPE_HOME" />

        <jar destfile="${dist.path}/${jar.name}" basedir="${compile.path}">
            <fileset dir="${src.path}" includes="**/*.props" />

            <zipfileset src="${bel.jar.path}"
                        includes="**/*.java **/*.class" />

            <manifest>
                <attribute name="Cytoscape-Plugin"
                           value="org.openbel.cytoscape.webservice.ClientPlugin" />
            </manifest>
        	
            <!-- include license -->
            <metainf file="${license}" />
        </jar>
    </target>

    <target name="package-source">
        <jar destfile="${dist.path}/${src.jar.name}" basedir="${src.path}">
            <!-- include license -->
            <metainf file="${license}" />
        </jar>
    </target>

    <target name="deploy" depends="package">
        <delete file="${deploy.path}" />
        <mkdir dir="${dist.path}" />
        <copy file="${dist.path}/${jar.name}" tofile="${deploy.path}" />
    </target>

    <target name="distribute">
        <antcall target="package" />
{'fraction_non_alphanumeric': 0.1517040180347434, 'fraction_numerical': 0.0018565177032223842, 'mean_word_length': 2.6452392460125664, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 113, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5987980', 'n_tokens_mistral': 2180, 'n_tokens_neox': 2102, 'n_words': 514}