📄 build.xml
字号:
<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE project [ <!ENTITY include SYSTEM "../../etc/common.xml"> ]> <project name="cmp" default="core" basedir="."> <!-- basic settings --> <property name="appname" value="Product"/> <property name="sample.home" value="../.."/> <property name="sample.name" value="Product"/> <property name="remote.interface" value="examples.cmp.Product"/> <property name="remote.home" value="examples.cmp.ProductHome"/> <property name="client.class" value="examples.cmp.ProductClient"/> <property name="app.pkg" value="examples/cmp"/> <property name="jar.pkg" value="examples/cmp"/> <property name="conpool.name" value="cmp-product-pool" /> <property name="jdbc.resource.name" value="jdbc/cmp-product" /> <property name="db.user" value="pbpublic"/> <property name="db.pwd" value="pbpublic"/> <property name="pm.resource.name" value="jdo/cmp-product" /> <property name="pm.factory.class" value="com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl" /> <!-- include common.xml --> &include; <!-- Call sql script to create tables.--> <target name="local.configure.db"> <antcall target="common.configure.db" > <param name="transaction.src" value="${src}/sql/${pointbase.sql.location}.createproducts.sql" /> </antcall> </target> <!-- delete database tables at undeploy time.--> <target name="local.unconfigure.db"> <antcall target="common.unconfigure.db" > <param name="transaction.src" value="${src}/sql/${pointbase.sql.location}.dropproducts.sql"/> </antcall> </target> <target name="setup" depends="setup_env, verify_jdbc_connection_pool_common, verify_jdbc_resource_common"> <antcall target="create-jdbc-connection-pool_common"/> <antcall target="create-jdbc-resource_common"/> <antcall target="create-persistence-resource_common"/> <antcall target="reconfig_common"/> </target> <target name="unsetup" depends="delete-jdbc-resource_common, delete-jdbc-connection-pool_common,delete-persistence-resource_common"/> <!-- targets to build and deploy sample application --> <target name="clean" depends="clean_common"/> <target name="init" depends="init_common"> <condition property="deploy.file" value="${assemble.ear}/${ear}"> <available file="${assemble.ear}/${ear}"/> </condition> <property name="deploy.file" value="${assemble.ear}/${ear}"/> <condition property="verify.file" value="${assemble.ear}/${ear}"> <available file="${assemble.ear}/${ear}"/> </condition> <property name="verify.file" value="${assemble.ear}/${ear}"/> </target> <target name="copy_ear" depends="init"> <delete file="../${ear}"/> <copy file="${assemble.ear}/${ear}" todir=".." /> </target> <target name="deploy" depends="init, setup, local.configure.db,deploy_common"/> <target name="deploy_retrieve" depends="init, unsetup, local.unconfigure.db,deploy_retrieve_common"/> <target name="undeploy" depends="undeploy_common, unsetup"/> <target name="jar" depends="init, create_ejbjar_common"/> <target name="client_jar" depends="init, clientjar_common"/> <target name="ear" depends="init, jar, create_ear_common"/> <target name="all" depends="compile_common, jar, ear, deploy"/></project>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -