使用ANT构建项目实例2步骤2:properties.xml

本文详细解析了一个使用Ant编写的构建脚本示例,介绍了如何通过属性设置来配置项目的构建路径、版本信息及依赖库等关键组件。同时,文中还展示了如何组织文件路径并导入外部配置。

<?xml version="1.0" encoding="UTF-8"?>
<project>
    <!-- extras parent path -->
    <property name="webapp.parentpath" value="develop"/>
 <!-- extras child path -->
 <property name="webapp.childpath" value=""/>

 <property name="webapp.extraspath" value="${webapp.parentpath}/${webapp.childpath}"/>

 <import file="extras/${webapp.extraspath}/properties.xml"/>
 
    <property name="webapp.version" value="2.4.8GG alpha"/>
 
 <!-- Directory structure of the project -->
    <property name="build.dir" value="${basedir}/build"/>
    <property name="dist.dir" value="${basedir}/dist"/>
 <property name="gen.dir" value="${build.dir}/gen"/>

    <!-- Library versions and JARs -->
    <property name="lib.dir" location="lib"/>
    <property file="${lib.dir}/lib.properties"/>   
  
    <!-- Build and deploy properties -->
    <property environment="env"/>
    <property name="env.COMPUTERNAME" value="${env.HOSTNAME}"/>
    <property name="tomcat.home" value="${env.CATALINA_HOME}"/>
 <!-- The target directory for building the packed web application -->
    <property name="webapp.dist" value="${dist.dir}/webapps"/>
    <!-- The target directory for building the unpacked web application -->
    <property name="webapp.target" value="${build.dir}/${webapp.name}"/> 
 
    <!-- The source directory for the whole project -->
    <property name="src" value="${basedir}/src"/>
 <!-- Should Java compilations set the debug compiler option? -->
    <property name="compile.debug" value="true"/>
 <!-- Should Java compilations set the deprecation compiler option? -->
    <property name="compile.deprecation" value="false"/>
 <!-- Should Java compilations set the optimize compiler option? -->
    <property name="compile.optimize" value="false"/>
 
 <path id="java.compile.classpath">  
  <fileset dir="${dipper.dir}" includes="*.jar"/> 
  <pathelement location="${axis.jar}"/>
  <pathelement location="${castor.jar}"/>
  <pathelement location="${commons-lang.jar}"/>
  <pathelement location="${commons-jxl.jar}"/>
  <pathelement location="${commons-fileupload.jar}"/>
  <pathelement location="${dom4j.jar}"/>
  <pathelement location="${jaxrpc.jar}"/>
  <pathelement location="${jcl-over-slf4j.jar}"/>
  <pathelement location="${log4j.jar}"/> 
  <pathelement location="${OAPlugIns.jar}"/>
  <pathelement location="${rplum-c.jar}"/>
  <pathelement location="${servletapi.jar}"/>
    </path>
 
</project>

D:\UseApp\jdk1.8.0_101\bin\java.exe -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:54608,suspend=y,server=n -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -javaagent:D:\UseApp\ideaIU-2020.1.1\plugins\java\lib\rt\debugger-agent.jar=file:/C:/Users/LEGION/AppData/Local/Temp/capture33456.props -Dfile.encoding=UTF-8 -classpath C:\Users\LEGION\AppData\Local\Temp\classpath247044529.jar com.bonc.activityGenerate.ActivityGenerateApplication Connected to the target VM, address: '127.0.0.1:54608', transport: 'socket' 2025-06-10 23:03:33.680 DEBUG 49132 --- [ main] c.a.n.client.env.SearchableProperties : properties search order:PROPERTIES->JVM->ENV 2025-06-10 23:03:33.800 DEBUG 49132 --- [ main] o.s.boot.SpringApplication : Loading source class org.springframework.cloud.bootstrap.BootstrapImportSelectorConfiguration 2025-06-10 23:03:33.819 DEBUG 49132 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@770d0ea6 2025-06-10 23:03:34.126 INFO 49132 --- [ main] c.a.n.p.a.s.c.ClientAuthPluginManager : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success. 2025-06-10 23:03:34.126 INFO 49132 --- [ main] c.a.n.p.a.s.c.ClientAuthPluginManager : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success. 2025-06-10 23:03:34.628 DEBUG 49132 --- [ main] o.s.c.support.DefaultLifecycleProcessor : Starting beans in phase -2147483647 2025-06-10 23:03:34.628 DEBUG 49132 --- [ main] o.s.c.support.DefaultLifecycleProcessor : Successfully started bean 'springBootLoggingLifecycle' 2025-06-10 23:03:34.633 DEBUG 49132 --- [ main] ConditionEvaluationReportLoggingListener : ============================ CONDITIONS EVALUATION REPORT ============================ Positive matches: ----------------- ConfigurationPropertiesRebinderAutoConfiguration matched: - @ConditionalOnBean (types: org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor; SearchStrategy: all) found bean 'org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor' (OnBeanCondition) ConfigurationPropertiesRebinderAutoConfiguration#configurationPropertiesBeans matched: - @ConditionalOnMissingBean (types: org.springframework.cloud.context.properties.ConfigurationPropertiesBeans; SearchStrategy: current) did not find any beans (OnBeanCondition) ConfigurationPropertiesRebinderAutoConfiguration#configurationPropertiesRebinder matched: - @ConditionalOnMissingBean (types: org.springframework.cloud.context.properties.ConfigurationPropertiesRebinder; SearchStrategy: current) did not find any beans (OnBeanCondition) EncryptionBootstrapConfiguration matched: - @ConditionalOnClass found required class 'org.springframework.security.crypto.encrypt.TextEncryptor' (OnClassCondition) EncryptionBootstrapConfiguration#keyProperties matched: - @ConditionalOnMissingBean (types: org.springframework.cloud.bootstrap.encrypt.KeyProperties; SearchStrategy: all) did not find any beans (OnBeanCondition) NacosConfigBootstrapConfiguration matched: - @ConditionalOnProperty (spring.cloud.nacos.config.enabled) matched (OnPropertyCondition) NacosConfigBootstrapConfiguration#nacosConfigManager matched: - @ConditionalOnMissingBean (types: com.alibaba.cloud.nacos.NacosConfigManager; SearchStrategy: all) did not find any beans (OnBeanCondition) NacosConfigBootstrapConfiguration#nacosConfigProperties matched: - @ConditionalOnMissingBean (types: com.alibaba.cloud.nacos.NacosConfigProperties; SearchStrategy: all) did not find any beans (OnBeanCondition) PropertyPlaceholderAutoConfiguration#propertySourcesPlaceholderConfigurer matched: - @ConditionalOnMissingBean (types: org.springframework.context.support.PropertySourcesPlaceholderConfigurer; SearchStrategy: current) did not find any beans (OnBeanCondition) Negative matches: ----------------- EncryptionBootstrapConfiguration.RsaEncryptionConfiguration: Did not match: - Keystore nor key found in Environment (EncryptionBootstrapConfiguration.KeyCondition) Matched: - @ConditionalOnClass found required class 'org.springframework.security.rsa.crypto.RsaSecretEncryptor' (OnClassCondition) EncryptionBootstrapConfiguration.VanillaEncryptionConfiguration: Did not match: - @ConditionalOnMissingClass found unwanted class 'org.springframework.security.rsa.crypto.RsaSecretEncryptor' (OnClassCondition) NacosConfigBootstrapConfiguration#smartConfigurationPropertiesRebinder: Did not match: - @ConditionalOnMissingBean (types: org.springframework.cloud.context.properties.ConfigurationPropertiesRebinder; SearchStrategy: current) found beans of type 'org.springframework.cloud.context.properties.ConfigurationPropertiesRebinder' configurationPropertiesRebinder (OnBeanCondition) NacosDiscoveryClientConfigServiceBootstrapConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.cloud.config.client.ConfigServicePropertySourceLocator' (OnClassCondition) Exclusions: ----------- None Unconditional classes: ---------------------- None . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.6.11) 2025-06-10 23:03:36.949 INFO 49132 --- [ main] c.a.n.c.a.AbstractAbilityControlManager : Ready to get current node abilities... 2025-06-10 23:03:36.950 INFO 49132 --- [ main] c.a.n.c.a.AbstractAbilityControlManager : Ready to initialize current node abilities, support modes: [SDK_CLIENT] 2025-06-10 23:03:36.951 INFO 49132 --- [ main] c.a.n.c.a.AbstractAbilityControlManager : Initialize current abilities finish... 2025-06-10 23:03:36.951 INFO 49132 --- [ main] c.a.n.c.a.d.NacosAbilityManagerHolder : [AbilityControlManager] Successfully initialize AbilityControlManager 2025-06-10 23:03:37.148 DEBUG 49132 --- [ main] o.s.boot.env.OriginTrackedYamlLoader : Loading from YAML: Byte array resource [redisson-service-prod.yml] 2025-06-10 23:03:37.150 DEBUG 49132 --- [ main] o.s.boot.env.OriginTrackedYamlLoader : Merging document (no matchers set): {spring={mvc={pathmatch={matching-strategy=ANT_PATH_MATCHER}}, http={multipart={enabled=true, max-file-size=-1, max-request-size=-1}}, datasource={dynamic={primary=tri, strict=false, datasource={tri={driver-class-name=com.mysql.jdbc.Driver, url=jdbc:mysql://172.16.50.128:8921/sdiri_db?useSSL=false&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=Asia/Shanghai, username=e_sdiri, password=uHF4CiXAMR5pe3AL, type=com.zaxxer.hikari.HikariDataSource, hikari={maximum-pool-size=40, minimum-idle=1, idle-timeout=30000, connection-timeout=30000, max-lifetime=1800000, pool-name=MyAppPool}}}}}}, tri={activityServerUrl=http://172.16.50.140:30913, activityEditUrl=http://172.16.50.140:30913/bloc-web/#/activity/edit/index/, AIGCGenerateImgServerUrl=http://172.16.20.29:30804/sd-api, standardServerUrl=http://10.135.139.99:30753, yunXiActivityDescUrl=/anlikuHtml/caselibrary.html#/caseIndexSSO, llmServerUrl=http://10.218.27.125:30871, llmModelName=Qwen2.5-32B-Instruct}, logging={config=classpath:logback-spring.xml}, feign={httpclient={max-connections-per-route=200, max-connections=1000}, circuitbreaker={enabled=true}, client={config={default={connect-timeout=300000, read-timeout=300000}}}}, server={port=31963, servlet={context-path=/act}}, login={skipUrls=[/user/login, /user/getLoginCode, /user/register, /task/logWebsocket, /server/**/api/chat, /wsApiChat, /server/serverDesc/**, /server/openServerList, /server/aiCloudPhone/**, /open/jiKe/**, /**/*.html, /**/*.js, /**/*.css, /**/*.icon, /**/*.gif, /**/*.jpg, /**/*.png, /chat/**, /swagger-resources/**, /v2/]}} 2025-06-10 23:03:37.150 DEBUG 49132 --- [ main] o.s.boot.env.OriginTrackedYamlLoader : Loaded 1 document from YAML resource: Byte array resource [redisson-service-prod.yml] 2025-06-10 23:03:37.177 WARN 49132 --- [ main] c.a.c.n.c.NacosPropertySourceBuilder : Ignore the empty nacos configuration and get it based on dataId[redisson-service] & group[DEFAULT_GROUP] 2025-06-10 23:03:37.183 WARN 49132 --- [ main] c.a.c.n.c.NacosPropertySourceBuilder : Ignore the empty nacos configuration and get it based on dataId[redisson-service.yml] & group[DEFAULT_GROUP] 2025-06-10 23:03:37.253 DEBUG 49132 --- [ main] o.s.boot.env.OriginTrackedYamlLoader : Loading from YAML: Byte array resource [redisson-service-prod.yml] 2025-06-10 23:03:37.261 DEBUG 49132 --- [ main] o.s.boot.env.OriginTrackedYamlLoader : Merging document (no matchers set): {spring={mvc={pathmatch={matching-strategy=ANT_PATH_MATCHER}}, http={multipart={enabled=true, max-file-size=-1, max-request-size=-1}}, datasource={dynamic={primary=tri, strict=false, datasource={tri={driver-class-name=com.mysql.jdbc.Driver, url=jdbc:mysql://172.16.50.128:8921/sdiri_db?useSSL=false&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=Asia/Shanghai, username=e_sdiri, password=uHF4CiXAMR5pe3AL, type=com.zaxxer.hikari.HikariDataSource, hikari={maximum-pool-size=40, minimum-idle=1, idle-timeout=30000, connection-timeout=30000, max-lifetime=1800000, pool-name=MyAppPool}}}}}}, tri={activityServerUrl=http://172.16.50.140:30913, activityEditUrl=http://172.16.50.140:30913/bloc-web/#/activity/edit/index/, AIGCGenerateImgServerUrl=http://172.16.20.29:30804/sd-api, standardServerUrl=http://10.135.139.99:30753, yunXiActivityDescUrl=/anlikuHtml/caselibrary.html#/caseIndexSSO, llmServerUrl=http://10.218.27.125:30871, llmModelName=Qwen2.5-32B-Instruct}, logging={config=classpath:logback-spring.xml}, feign={httpclient={max-connections-per-route=200, max-connections=1000}, circuitbreaker={enabled=true}, client={config={default={connect-timeout=300000, read-timeout=300000}}}}, server={port=31963, servlet={context-path=/act}}, login={skipUrls=[/user/login, /user/getLoginCode, /user/register, /task/logWebsocket, /server/**/api/chat, /wsApiChat, /server/serverDesc/**, /server/openServerList, /server/aiCloudPhone/**, /open/jiKe/**, /**/*.html, /**/*.js, /**/*.css, /**/*.icon, /**/*.gif, /**/*.jpg, /**/*.png, /chat/**, /swagger-resources/**, /v2/]}} 2025-06-10 23:03:37.261 DEBUG 49132 --- [ main] o.s.boot.env.OriginTrackedYamlLoader : Loaded 1 document from YAML resource: Byte array resource [redisson-service-prod.yml] 2025-06-10 23:03:37.262 INFO 49132 --- [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource@58791184 {name='bootstrapProperties-redisson-service-prod.yml,DEFAULT_GROUP', properties={spring.mvc.pathmatch.matching-strategy=ANT_PATH_MATCHER, spring.http.multipart.enabled=true, spring.http.multipart.max-file-size=-1, spring.http.multipart.max-request-size=-1, spring.datasource.dynamic.primary=tri, spring.datasource.dynamic.strict=false, spring.datasource.dynamic.datasource.tri.driver-class-name=com.mysql.jdbc.Driver, spring.datasource.dynamic.datasource.tri.url=jdbc:mysql://172.16.50.128:8921/sdiri_db?useSSL=false&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=Asia/Shanghai, spring.datasource.dynamic.datasource.tri.username=e_sdiri, spring.datasource.dynamic.datasource.tri.password=uHF4CiXAMR5pe3AL, spring.datasource.dynamic.datasource.tri.type=com.zaxxer.hikari.HikariDataSource, spring.datasource.dynamic.datasource.tri.hikari.maximum-pool-size=40, spring.datasource.dynamic.datasource.tri.hikari.minimum-idle=1, spring.datasource.dynamic.datasource.tri.hikari.idle-timeout=30000, spring.datasource.dynamic.datasource.tri.hikari.connection-timeout=30000, spring.datasource.dynamic.datasource.tri.hikari.max-lifetime=1800000, spring.datasource.dynamic.datasource.tri.hikari.pool-name=MyAppPool, tri.activityServerUrl=http://172.16.50.140:30913, tri.activityEditUrl=http://172.16.50.140:30913/bloc-web/#/activity/edit/index/, tri.AIGCGenerateImgServerUrl=http://172.16.20.29:30804/sd-api, tri.standardServerUrl=http://10.135.139.99:30753, tri.yunXiActivityDescUrl=/anlikuHtml/caselibrary.html#/caseIndexSSO, tri.llmServerUrl=http://10.218.27.125:30871, tri.llmModelName=Qwen2.5-32B-Instruct, logging.config=classpath:logback-spring.xml, feign.httpclient.max-connections-per-route=200, feign.httpclient.max-connections=1000, feign.circuitbreaker.enabled=true, feign.client.config.default.connect-timeout=300000, feign.client.config.default.read-timeout=300000, server.port=31963, server.servlet.context-path=/act, login.skipUrls[0]=/user/login, login.skipUrls[1]=/user/getLoginCode, login.skipUrls[2]=/user/register, login.skipUrls[3]=/task/logWebsocket, login.skipUrls[4]=/server/**/api/chat, login.skipUrls[5]=/wsApiChat, login.skipUrls[6]=/server/serverDesc/**, login.skipUrls[7]=/server/openServerList, login.skipUrls[8]=/server/aiCloudPhone/**, login.skipUrls[9]=/open/jiKe/**, login.skipUrls[10]=/**/*.html, login.skipUrls[11]=/**/*.js, login.skipUrls[12]=/**/*.css, login.skipUrls[13]=/**/*.icon, login.skipUrls[14]=/**/*.gif, login.skipUrls[15]=/**/*.jpg, login.skipUrls[16]=/**/*.png, login.skipUrls[17]=/chat/**, login.skipUrls[18]=/swagger-resources/**, login.skipUrls[19]=/v2/}}, BootstrapPropertySource@619621481 {name='bootstrapProperties-redisson-service.yml,DEFAULT_GROUP', properties={}}, BootstrapPropertySource@408132785 {name='bootstrapProperties-redisson-service,DEFAULT_GROUP', properties={}}] _ _ |_ _ _|_. ___ _ | _ | | |\/|_)(_| | |_\ |_)||_|_\ / | 3.4.1 项目启动卡到这里不动了,怎么解决?
最新发布
06-11
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值