wsit-deploy.xml


Dosyayı İndir
<?xml version="1.0" encoding="UTF-8"?>
<project default="-post-run-deploy" basedir=".." xmlns:webproject3="http://www.netbeans.org/ns/web-project/3" xmlns:webproject2="http://www.netbeans.org/ns/web-project/2" xmlns:jaxws="http://www.netbeans.org/ns/jax-ws/1" xmlns:webproject1="http://www.netbeans.org/ns/web-project/1">
    <target name="-wsit-init">
        <property file="nbproject/private/private.properties"/>
        <condition property="user.properties.file" value="${netbeans.user}/build.properties">
            <not>
                <isset property="user.properties.file"/>
            </not>
        </condition>
        <property file="${deploy.ant.properties.file}"/>
        <condition property="appserver.root" value="${sjsas.root}">
            <isset property="sjsas.root"/>
        </condition>
        <condition property="appserver.password" value="${sjsas.password}">
            <isset property="sjsas.password"/>
        </condition>
        <condition property="appserver.root" value="${gfv3.root}">
            <isset property="gfv3.root"/>
        </condition>
        <condition property="appserver.password" value="${gfv3.password}">
            <isset property="gfv3.password"/>
        </condition>
        <condition property="appserver.password" value="changeit">
            <not>
                <isset property="appserver.password"/>
            </not>
        </condition>
        <fail unless="user.properties.file">Must set user properties file</fail>
        <fail unless="appserver.root">Must set Sun app server root</fail>
        <fail unless="appserver.password">Must set Sun app server password</fail>
    </target>
    <target name="-create-wsit-prop" unless="do.not.create.wsit.prop">
        <echo file="nbproject/wsit.properties" message="AS_ADMIN_USERPASSWORD=${appserver.password}"/>
    </target>
    <target name="-delete-create-wsit-file" if="user.created">
        <delete file="nbproject/wsit.createuser"/>
    </target>
    <target name="create-user" unless="user.exists">
        <exec timeout="10000" outputproperty="creation.out" executable="${appserver.root}/bin/asadmin" failonerror="false" failifexecutionfails="false" osfamily="unix">
            <arg value="create-file-user"/>
            <arg value="--passwordfile"/>
            <arg value="nbproject/wsit.properties"/>
            <arg value="wsitUser"/>
        </exec>
        <exec timeout="10000" outputproperty="creation.out" executable="${appserver.root}/bin/asadmin" failonerror="false" failifexecutionfails="false" osfamily="mac">
            <arg value="create-file-user"/>
            <arg value="--passwordfile"/>
            <arg value="nbproject/wsit.properties"/>
            <arg value="wsitUser"/>
        </exec>
        <exec timeout="10000" outputproperty="creation.out" executable="${appserver.root}/bin/asadmin.bat" failonerror="false" failifexecutionfails="false" osfamily="windows">
            <arg value="create-file-user"/>
            <arg value="--passwordfile"/>
            <arg value="nbproject/wsit.properties"/>
            <arg value="wsitUser"/>
        </exec>
        <condition property="user.created">
            <and>
                <contains string="${creation.out}" substring="create-file-user"/>
                <contains string="${creation.out}" substring="success"/>
            </and>
        </condition>
        <antcall target="-delete-create-wsit-file"/>
    </target>
    <target name="-do-create-user" if="do-create-user">
        <available property="do.not.create.wsit.prop" file="nbproject/wsit.properties"/>
        <antcall target="-create-wsit-prop"/>
        <exec timeout="10000" outputproperty="as.users" executable="${appserver.root}/bin/asadmin" failonerror="false" failifexecutionfails="false" osfamily="unix">
            <arg value="list-file-users"/>
        </exec>
        <exec timeout="10000" outputproperty="as.users" executable="${appserver.root}/bin/asadmin" failonerror="false" failifexecutionfails="false" osfamily="mac">
            <arg value="list-file-users"/>
        </exec>
        <exec timeout="10000" outputproperty="as.users" executable="${appserver.root}/bin/asadmin.bat" failonerror="false" failifexecutionfails="false" osfamily="windows">
            <arg value="list-file-users"/>
        </exec>
        <condition property="user.exists">
            <contains string="${as.users}" substring="wsitUser"/>
        </condition>
        <antcall target="create-user"/>
    </target>
    <target name="-post-run-deploy" depends="-wsit-init">
        <available property="do-create-user" file="nbproject/wsit.createuser"/>
        <antcall target="-do-create-user"/>
    </target>
</project>

				
Dosyayı İndir

Bu Sayfayı Paylaş:




Bu Sayfayı Paylaş:

İletişim Bilgileri

Takip Et

Her Hakkı Saklıdır. Bu sitede yayınlanan tüm bilgi ve fikirlerin kullanımından fibiler.com sorumlu değildir. Bu sitede üretilmiş , derlenmiş içerikleri, fibiler.com'u kaynak göstermek koşuluyla kendi sitenizde kullanılabilirsiniz. Ancak telif hakkı olan içeriklerin hakları sahiplerine aittir