java项目打包成脚本_Java 项目打包脚本

[[email protected] export.v2.2.3_2013-07-04_17-00+2.jre150]$ ls -l

总用量 980

-rw-rw-r--. 1 typhoon typhoon 1462 8月 25 13:45 export.bat

-rw-rw-r--. 1 typhoon typhoon 1362 8月 25 13:45 export.sh

drwxrwxr-x. 2 typhoon typhoon 4096 8月 25 13:45 test_files

lrwxrwxrwx. 1 typhoon typhoon 49 8月 25 13:45 tfw-base.aij.jar -> tfw-base.v2.2.3_2013-07-04_17-00+2.jre150.aij.jar

lrwxrwxrwx. 1 typhoon typhoon 49 8月 25 13:45 tfw-base.doc.zip -> tfw-base.v2.2.3_2013-07-04_17-00+2.jre150.doc.zip

lrwxrwxrwx. 1 typhoon typhoon 49 8月 25 13:45 tfw-base.raw.jar -> tfw-base.v2.2.3_2013-07-04_17-00+2.jre150.raw.jar

lrwxrwxrwx. 1 typhoon typhoon 49 8月 25 13:45 tfw-base.src.zip -> tfw-base.v2.2.3_2013-07-04_17-00+2.jre150.src.zip

-rw-rw-r--. 1 typhoon typhoon 285241 8月 25 13:45 tfw-base.v2.2.3_2013-07-04_17-00+2.jre150.aij.jar

-rw-rw-r--. 1 typhoon typhoon 380625 8月 25 13:45 tfw-base.v2.2.3_2013-07-04_17-00+2.jre150.doc.zip

-rw-rw-r--. 1 typhoon typhoon 160196 8月 25 13:45 tfw-base.v2.2.3_2013-07-04_17-00+2.jre150.raw.jar

-rw-rw-r--. 1 typhoon typhoon 140339 8月 25 13:45 tfw-base.v2.2.3_2013-07-04_17-00+2.jre150.src.zip

[[email protected] export.v2.2.3_2013-07-04_17-00+2.jre150]$

package generconfig; import java.io.File; import java.io.IOException; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import org.mybatis.generator.api.MyBatisGenerator; import org.mybatis.generator.config.Configuration; import org.mybatis.generator.config.xml.ConfigurationParser; import org.mybatis.generator.exception.InvalidConfigurationException; import org.mybatis.generator.exception.XMLParserException; import org.mybatis.generator.internal.DefaultShellCallback; import org.springframework.context.support.GenericXmlApplicationContext; import com.pactera.service.schedule.ThreadReadPath; import com.pactera.util.CommTool; /*打包用File->Export->runnable JAR File Export Launch选择对应的类 Export destination 选择地址 Library handling:Copy required */ public class SMSThreadSender { public static void main(String[] args) { if(args.length==0) { System.out.println("短信服务开启,开始加载Spring配置。"); GenericXmlApplicationContext context = new GenericXmlApplicationContext(); context.setValidating(false); context.load("classpath:sysconfig/applicationContext.xml"); context.refresh(); System.out.println("开整·~~~~"); CommTool.smsthreadisruning=true; ThreadReadPath thread = new ThreadReadPath(); thread.smsname="sms"+CommTool.threadid; Thread t1 = new Thread(thread); t1.setName("sms"); t1.start(); System.out.println("已经启动"); } if(args.length==1) { String pfile=args[0]; System.out.println("短信服务开启,开始加载Spring配置。"+pfile); GenericXmlApplicationContext context = new GenericXmlApplicationContext(); context.setValidating(false); context.load(pfile); // context.load("classpath:sysconfig/applicationContext.xml"); context.refresh(); CommTool.smsth
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值