nb-build-impl.xml.svn-base

来自「cqME :java framework for TCK test.」· SVN-BASE 代码 · 共 345 行 · 第 1/2 页

SVN-BASE
345
字号
            <length string="${config.active}" trim="true" length="0"/>        </condition>        <property name="config.active.name" value="${config.active}"/>        <taskdef resource="org/netbeans/modules/kjava/antext/defs.properties">            <classpath>                <pathelement path="${libs.j2me_ant_ext.classpath}"/>            </classpath>        </taskdef>        <uptodate property="no.clean.before.build" targetfile="${build.dir}/.timestamp">            <srcfiles dir="nbproject">                <include name="project.properties"/>                <include name="build-impl.xml"/>            </srcfiles>        </uptodate>        <condition property="skip.deployment">            <equals arg1="${deployment.method}" arg2="NONE" casesensitive="false" trim="true"/>        </condition>        <condition property="skip-sign-keystore-password-input">            <or>                <isfalse value="${sign.enabled}"/>                <and>                    <isset property="sign.keystore"/>                    <isset property="sign.keystore.password"/>                    <not>                        <equals arg1="${sign.keystore}" arg2="" trim="true"/>                    </not>                    <not>                        <equals arg1="${sign.keystore.password}" arg2="" trim="true"/>                    </not>                </and>            </or>        </condition>        <condition property="skip-sign-alias-password-input">            <or>                <isfalse value="${sign.enabled}"/>                <and>                    <isset property="sign.keystore"/>                    <isset property="sign.alias"/>                    <isset property="sign.alias.password"/>                    <not>                        <equals arg1="${sign.keystore}" arg2="" trim="true"/>                    </not>                    <not>                        <equals arg1="${sign.alias}" arg2="" trim="true"/>                    </not>                    <not>                        <equals arg1="${sign.alias.password}" arg2="" trim="true"/>                    </not>                </and>            </or>        </condition>        <condition property="compile.bootclasspath"                    value="${platform.bootclasspath}">            <isset property="platform.bootclasspath"/>        </condition>    </target>        <target name="pre-load-properties">        <property file="nbproject/private/private.properties"/>        <property name="deployment.number" value="0.0.1"/>        <property name="deployment.counter" value="000002"/>        <property name="user.properties.file"                 location="${netbeans.user}/build.properties"/>        <available property="user.properties.file.exists"                 file="${user.properties.file}"/>    </target>        <target name="exists.config.active"             depends="pre-load-properties"            unless="config.active">        <echo level="warning" message="Active configuration (config.active                property) is not set - using default."/>        <property value="" name="config.active"/>    </target>        <target name="exists.netbeans.user"            depends="pre-load-properties"            unless="netbeans.user">        <echo level="warning" message="NetBeans IDE user directory                 (netbeans.user property) is not set. By specifying this                property many properties required by the project will be                automatically evaluated (e.g.: ant-ext library home, ...).                You could also open this project in the NetBeans IDE                - in this case this property would be set automatically."/>    </target>        <target name="exists.user.properties.file"             depends="pre-load-properties"             unless="user.properties.file.exists">        <echo level="warning" message="User properties file                 (user.properties.file) property is not set. By specifying this                property many properties required by the project will be                automatically evaluated (e.g.: libraries, platforms, ...)."/>    </target>        <target name="load-properties-impl"             depends="pre-load-properties,                     exists.config.active,                     exists.netbeans.user,                     exists.user.properties.file,                     load-project-properties"            description="Loads properties from files in 'nbproject' directory.">        <loadproperties srcfile="${user.properties.file}">            <filterchain>                <replaceregex pattern="^platforms\.${platform.active}\."                        replace="platform."/>                <replaceregex                         pattern="^deployment\.${deployment.method}\.scriptfile="                        replace="deployment.scriptfile="/>            </filterchain>        </loadproperties>        <loadproperties srcfile="nbproject/project.properties">            <filterchain>                <containsregex pattern="^configs\.${config.active}\.(.*)"                         replace="\1"/>                <concatfilter prepend="nbproject/project.properties"/>            </filterchain>        </loadproperties>    </target>        <target name="load-project-properties">        <loadproperties srcfile="nbproject/project.properties">            <filterchain>                <containsregex pattern="^configs\.${config.active}\.(.*)"                         replace="\1"/>                <concatfilter prepend="nbproject/project.properties"/>                <containsregex pattern="^platform.active=|^deployment.method="/>            </filterchain>        </loadproperties>        <fail unless="platform.active">Active platform (platform.active property) in not set.Adjust project properties to specify appropriate Java ME platformfor this exported test. If you use the default paltform registeredwith NetBeans IDE, it would be enough to select the deviceconfiguration and profile (i.e. CLDC and MIDP). To registeranother platform, use Java Platform Manager from Tools menu. If you want to run tests in pure CLDC mode you have to register a custom Java MEplatform in the Java Platform Manager and specify manually the commands topreverify and run CLDC applications. This have some limitations and may not work.        </fail>    </target>        <target name="exists.platform.active"             depends="load-properties"             unless="platform.active">        <echo level="warning"               message="Active platform (platform.active property) in not set.              If you set this and user.properties.file property, many properties              required by the project will be automatically evaluated              (e.g.: platform home, platform classpath, ...)."/>    </target>        <target name="exists.platform.configuration"            unless="platform.configuration"             depends="load-properties">        <echo level="warning"              message="Platform configuration (platform.configuration) is not              set. Using default (CLDC-1.0) configuration."/>        <property name="platform.configuration" value="CLDC-1.0"/>    </target>        <target name="exists.platform.profile"             unless="platform.profile"             depends="load-properties">        <echo level="warning"               message="Platform profile (platform.profile) is not set. Using              default (MIDP-1.0) profile."/>        <property name="platform.profile" value="MIDP-1.0"/>    </target></project>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?