连续发布版器
来源:技术人生 责任编辑:栏目编辑 发表时间:2013-07-02 02:36 点击:次
package com.androidComplex;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;
import javax.swing.JOptionPane;
public class Modifier {
private String saveFilePath=null;
private Hashtable<String,Hashtable>fileInf=null;
private Hashtable tempHashtable=new Hashtable();
private int version_id=0;
private String tempVersionStr="";
private int ban_ben_count=3;
private int ban_ben_number=5000;
private String progectRootPath="D:"+File.separator+"workspaceAndroid"+File.separator+"kaikairelease";//工程路径
private ObjectInputStream getSaveInf=null;
private ObjectOutputStream setSaveInf=null;
private BufferedReader br=null;
private BufferedWriter bw=null;
private FileReader fr=null;
private FileWriter fw=null;
private String rootPath=null;
public Modifier(){
}
public void set_BanbenNumber(int number){ //版本号
ban_ben_number=number;
}
public void setBanBenCount(int count){ //版本的数量
ban_ben_count=count;
}
private void initInf(){ //初始化版本信息
fileInf=new Hashtable<String,Hashtable>();
Hashtable tempHashtable=new Hashtable();
tempHashtable.put("PARTNERID",ban_ben_number); //需要修改的东西
fileInf.put(progectRootPath+File.separator+"src"+File.separator+"com"+File.separator+"peptalk"+File.separator+"client"+File.separator+"kaikai"+File.separator+"util"+File.separator+"INFO.java", tempHashtable);
}
public void runModifier(){
initInf();
if(fileInf!=null && fileInf.size()>0){
Enumeration<String> key=fileInf.keys();
String strKey=null;
Hashtable tempHashtable=null;
while(key.hasMoreElements()){
strKey=key.nextElement();
&n
private String saveFilePath=null;
private Hashtable<String,Hashtable>fileInf=null;
private Hashtable tempHashtable=new Hashtable();
private int version_id=0;
private String tempVersionStr="";
private int ban_ben_count=3;
private int ban_ben_number=5000;
private String progectRootPath="D:"+File.separator+"workspaceAndroid"+File.separator+"kaikairelease";//工程路径
private ObjectInputStream getSaveInf=null;
private ObjectOutputStream setSaveInf=null;
private BufferedReader br=null;
private BufferedWriter bw=null;
private FileReader fr=null;
private FileWriter fw=null;
private String rootPath=null;
public Modifier(){
}
public void set_BanbenNumber(int number){ //版本号
ban_ben_number=number;
}
public void setBanBenCount(int count){ //版本的数量
ban_ben_count=count;
}
private void initInf(){ //初始化版本信息
fileInf=new Hashtable<String,Hashtable>();
Hashtable tempHashtable=new Hashtable();
tempHashtable.put("PARTNERID",ban_ben_number); //需要修改的东西
fileInf.put(progectRootPath+File.separator+"src"+File.separator+"com"+File.separator+"peptalk"+File.separator+"client"+File.separator+"kaikai"+File.separator+"util"+File.separator+"INFO.java", tempHashtable);
}
public void runModifier(){
initInf();
if(fileInf!=null && fileInf.size()>0){
Enumeration<String> key=fileInf.keys();
String strKey=null;
Hashtable tempHashtable=null;
while(key.hasMoreElements()){
strKey=key.nextElement();
&n
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>