<project name="portaldemo" default="deploy">
    <target name="pack">
        <war warfile="/work/demo2.war" webxml="web.xml">
            <classes dir="bin" includes="demo/jsf/*.class,demo/logic/*.class"/>
            <fileset dir="jsp" includes="*.jsp"/>
            <fileset dir="facelet" includes="*.xhtml"/>
            <lib dir="/DivJava/mysql-connector-java-5.1.36" includes="mysql-connector-java-5.1.36-bin.jar"/>
            <webinf dir="." includes="beans.xml,portlet.xml"/>
            <metainf dir="." includes="Context.xml"/>
        </war>
    </target>
    <target name="deploy" depends="pack">
        <copy file="/work/demo2.war" todir="/Apache/apache-tomcat-8.5.12/webapps"/>
        <copy file="/work/demo2.war" todir="/Apache/pluto-3.1.0/webapps"/>
    </target>
</project>