auto-config.xml 1.43 KB
<?xml version="1.0" encoding="UTF-8"?>

<config>
    <group>
		<!--milanoo-autoconfig-env-->
		<property name="yoho.env.javahome" defaultValue="/usr/local/java" description="JDK安装路径"/>
		<property name="yoho.env.servertype" defaultValue="jboss" description="应用服务器类型(jboss or tomcat)"/>
        <property name="yoho.env.serverhome" defaultValue="/usr/local/jboss" description="应用服务器(jboss or tomcat)安装路径"/>
        <property name="petstore.env.serverport" defaultValue="0" description="应用端口"/>
        <property name="petstore.env.namespace" defaultValue="petstore" description="应用命名空间"/>
        <property name="petstore.env.productmode" defaultValue="PRODUCT" description="PRODUCT-生产环境  / TEST-测试环境 / DEV-开发环境"/>
	</group>
    <script>
    	<generate template="META-INF/autoconf/bin/env.sh" destfile="bin/env.sh"/>
    	<generate template="META-INF/autoconf/bin/env.bat" destfile="bin/env.bat"/>
    	<generate template="META-INF/autoconf/conf/jmx/jmx_monitor_management.properties" destfile="conf/jmx/jmx_monitor_management.properties"/>
    	<generate template="META-INF/autoconf/conf/jboss/standalone.xml" destfile="conf/jboss/standalone.xml"/>
    	<generate template="META-INF/autoconf/conf/jboss/application.xml" destfile="application.xml"/>
    	<generate template="META-INF/autoconf/conf/tomcat/server.xml" destfile="conf/tomcat/server.xml"/>
    </script>
</config>