cvs -d:pserver:name@cvs.tigris.org:/cvs import learndiary\old learndiary initial
error message says I have no write access to cvs authority.
But,I own the write authority to cvs.
Later,change "\" into "/",like below:
cvs -d:pserver:name@cvs.tigris.org:/cvs import learndiary/old learndiary initial
That's ok.
分类:Java
I don't know the parameters:brunch tag in "import"
I don't know the usage of these parameters,so maybe have a misuse in our cvs repository when I import the source code several days ago.
can't remove a directory in cvs repository really
A 'remove' command to be used at cvs client can't really remove a directory in cvs repository,and,if it is a file to be removed,it only removes this file to a folder named 'Attic'.
I don't know why CVSNT cannot be installed on my computer,so I can't use wincvs and test cvs function in eclipse,and can't test JCVS yet.So,using command-line cvs client is a proper choice of mine,I can do some test before I upload my changes to cvs server.
想自己生个"个人财务管理系统"
为了学习Struts,ejb,weblogic需要.我想开发一个这个系统.最主要为提升自己的实践水平,二者,对自己的消费有个理性规划.
不要急!静下心来学习
不要及!静下心来学习吧!欲速则不达,古话说的好,我不能太急!
努力中
努力中
来到,新公司.一切环境都是新的了
我来新公司上班,两个星期了.我们公司跟以前所用的开发环境有所不同.目前公司用的开发环境为(webwork+spring+hibernate)这一块技术比较新.在国内,资料还不是很多.熟悉起来有的麻烦,不过,各种framework总的来说还是差不多.
can the CVS operate a non-text file?
for example:a image or sound or a sort of uml file?I knew the change of a text file can be recognized by the CVS and can be limited a change in some lines.
but,I think a non-text file should there is not return character and new-line character in it.
池连接碰到的一个问题
我用weblogic + jbuilder + mssqlsever2000 采用池联接。我们的JDBC联系数不断在增加(根我判断,是因为我用完一个方法以后,这个连接还是标识为忙。)。但是我已经对它作了释放处理了,不过还是没有用啊。
我从中抽出一部份代码如下
package com.csbook.documentsystem;
import javax.naming.*;
import javax.sql.*;
import java.io.*;
import java.sql.*;
import java.util.*;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.*;
public class Vistit {
Context ctx = null;
DataSource ds = null;
SysLog log = null;
ChangeEncoding ce = null;
//构造函数
public Vistit() {
//从连接池中获取数据库连接
try {
ctx = new InitialContext();
ds = (DataSource) ctx.lookup("MyDataSource");
}
catch (NamingException e) {
e.printStackTrace();
}
// 建立一个日志类的实例
log = new SysLog();
}
public void addInFactoryReg(String no, String name, String company,
String people, String reason, String certif) {
Connection con = null;
PreparedStatement ps = null;
String temptime = "";
String intime = "";
//temptime = TimeString.getNowTime("HH:mm:ss");
//intime =temptime.substring(8);
//System.out.println("company"+company);
try {
StringTokenizer st = null;
ArrayList temp = getTemp();
Object data[] = temp.toArray();
String card_number = "";
System.out.println("data.length" + data.length);
for (int i = 0; i < data.length; i++) {
st = new StringTokenizer((String) data[i]);
card_number = ce.changeCharset(st.nextToken());
int card_no = getNoCount("card", "card_no");
card_no++;
addInFactoryReg(card_no, no, card_number);
changeState(card_number);
}
//String sqlInsert = "insert into visit(visit_no,visit_mark,visit_name,visit_company,visit_reason,visit_certif,visit_intime) values (" +no+ "," +mark+ "," +name+ "," +company+ "," +reason+ "," +certif+ "," +intime+ ")";
// String sqlInsert = "insert into visit(visit_no,visit_mark,visit_name,visit_company,visit_peopleCount,visit_reason,visit_certif,visit_intime) values (?,?,?,?,?,?,?,'" +intime+ "')";
String sqlInsert = "insert into visit(visit_no,visit_name,visit_company,visit_peopleCount,visit_reason,visit_certif) values (?,?,?,?,?,?)";
con = ds.getConnection();
ps = con.prepareStatement(sqlInsert);
ps.setString(1, no);
ps.setString(2, name);
ps.setString(3, ce.changeCharset(company));
ps.setString(4, people);
ps.setString(5, ce.changeCharset(reason));
ps.setString(6, certif);
//System.out.println("sqlInsert" + sqlInsert);
//System.out.println("no" + "visit_no");
ps.executeUpdate();
delData();
}
catch (Exception e) {
e.printStackTrace();
}
finally {
Close.connnectionClose(con);
Close.prepareStatementClose(ps);
}
}
package com.csbook.documentsystem;
import javax.sql.*;
import java.sql.*;
public class Close {
public void close(){
}
public static void connnectionClose(Connection con){
if (con != null)
try {
con.close();
}
catch (SQLException ignore) {}
}
public static void prepareStatementClose(PreparedStatement ps){
if(ps != null)
try{
ps.close();
}
catch(SQLException e) {}
}
public static void resultSetClose(ResultSet rs){
if(rs != null){
try{
rs.close();
}
catch(SQLException e){}
}
}
config eclipse platform
1.eclipse2.1;
2.eclipseuml Plugin-for eclipse2.1,www.omondo.com.It can be used to draw all diagram in UML,there is function of forward and reverse engineering between java code and class diagram.it's a community version.but for me is satisfiable;
3.tomcat Plugin;
4.easystruts.eclipse_0.6.4;
5.import learndiaryV0.9.0.3 into eclipse project.
The key is below:
1).copy all the *.jar file in the 'lib' folder of learndiaryV0.9.0.3 into easyStruts requirement lib and all TLD file into easyStruts requirement TLD;
2).package the files in 'src' into 'src\com\learndiary\website' folder,and remove this folder into WEB-INF folder;
3).remove the resource file named application.properties to src\com\learndiary\website\ApplicationResources.properties;