Eclipse IDE Tool 2009. 8. 10. 15:41

톰켓5.5 context를 root로 설정하기


이클립스와 톰켓연동후에 url을 http://localhost/indox.do 이런식으로 호출해서 사용하고자 하는 셋팅방법이다.

앞서서 주의해야 할점은 이클립스내에서 프로젝트 생성후에 톰켓연동시 server.xml에 자동으로 context가 생성되면서
이클립스내에서 생성한 프로젝트와 톰켓을 연동시키는 server.xml이 셋팅이된다.

이클립스내에서 보이는 server 프로젝트의 server.xml과 실제 톰켓에 존재하는 server.xml은 다르다.

즉 이클립스내에서 sever.xml 은 실제 톰켓의 server.xml과 연동시켜주는 역활을 하는것이므로 착각할수도있으니 주의해야한다.


본격적으로 톰켓5.5에서 context root로 셋팅하는 방법이다.

개발환경 : java 5.0  / eclipse3.1 wtp / tomcat5.5

1. 우선 편의를 위해서 톰켓플러그인버전 설치(필수사항은 아니나 받으면 추가적으로 해야하는 작업을 하지않아서 편리함)

    다운로드  url : http://www.eclipsetotale.com/tomcatPlugin.html
  
   다운로드후 아래와비슷하게 자신의 환경에 맞추어서 셋팅!
 


2.  tomcat 설치된 폴더에 conf 폴더안의 server.xml 을 아래처럼 셋팅
    아래 부분에 <Resource /> 및 <ResourceLink /> 부분은 dbcp설정하는 부분으로 필요치 않은사람은 생략해도 된다.
    빨간색으로 된부분이 설정해주는 부분이다.
    이 경로를 이클립스 프로젝트로 설정해주어도 된다. 
    아니면 이클립스에서 프로젝트를 war로 만들어서 본인처럼 해도 좋음!!
    

<Resource auth="Container" driverClassName="Altibase.jdbc.driver.AltibaseDriver" name="jdbc/abeek" password="skuaqpr" type="javax.sql.DataSource" url="jdbc:Altibase://203.249.122.181:20300/mydb?encoding=MS949" username="skuabeek"/>            


   <Host name="localhost" appBase="C:\Tomcat5\webapps\skuAbeek4h"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">
   <Context path="" docBase="." reloadable="true" workDir="C:\DevLog\work">
   <ResourceLink global="jdbc/abeek" name="jdbc/abeek" type="javax.sql.DataSource"/>
   </Context>


3.  참고로 서버 설정후 JNDI 오류발생시 아래 부분 생략 필요함(톰켓홈의 Server.xml)
     factory="org.objectweb.jndi.DataSourceFactory"



Eclipse IDE Tool 2009. 2. 6. 14:15

이클립스에서 정규식 사용하기

 

a?  a가 0개 혹은 1개 발생하면 일치  'a' 나 빈 문자열
a*  a가 0 혹은 그 이상 발생할 때 일치  빈 문자열이나 'a', 'aa', 'aaa', 등
a+  a가 1번 이상 발생하면 일치 'a', 'aa', 'aaa', 등 
a|b  a 나 b면 일치 'a' 나 'b'
.  한개의 문자면 일치  'a', 'q', 'l', '_', '+', 등
[woeirjsd]  지정한 문자들 중 하나 이면 일치  'w', 'o', 'e', 'i', 'r', 'j', 's', 'd' 
[1-9]  범위 안의 문자면 일치  '1', '2', '3', '4', '5', '6', '7', '8', '9' 
[^13579]  지정한 문자 이외의 문자이면 일치  짝수 혹은 문자 
(ie)  수식을 묶음 (다른 연산자와 사용하기 위함)  'ie' 
^a  줄의 맨 처음에 a가 있으면 일치 'a' 
a$  줄의 맨 끝에 a가 있으면 일치  'a' 


ex>

a(.*)b : a다음에 어떤한 글자가 와도 된다.   
  일치단어 : acvcvb, ab, ab343bkkk


정규표현식 (Regular Expressions)

PHP에서 정규표현식을 지원하는 함수로는 ereg(), eregi(), ereg_replace(), eregi_replace(), split(), spliti() 등이 있다. 이 때 ereg_replace 보다 preg_replace가 훨씬 빠르다고 한다.
이 외에도 펄 형식을 지원하는 정규표현식에 관련된 함수들도 있다.

1. 기초 (Basic Syntax)

First of all, let's take a look at two special symbols: '^ (start)' and '$ (end)'.

  • "^The": matches any string that starts with "The";
  • "of despair$": matches a string that ends in the substring "of despair";
  • "^abc$": a string that starts and ends with "abc" -- that could only be "abc" itself!
  • "notice": a string that has the text "notice" in it. "notice" 그 자체가 아닌 "notice"를 포함하는 것을 뜻한다.

There are also the symbols '* (zero or more)', '+ (one or more)', and '? (zero or one)', which denote the number of times a character or a sequence of characters may occur.

  • "ab*": matches a string that has an a followed by zero or more b's ("a", "ab", "abbb", etc.);
  • "ab+": same, but there's at least one b ("ab", "abbb", etc.);
  • "ab?": there might be a b or not;
  • "a?b+$": a possible a followed by one or more b's ending a string.

You can also use bounds, which come inside braces and indicate ranges in the number of occurences:

  • "ab{2}": matches a string that has an a followed by exactly two b's ("abb");
  • "ab{2,}": there are at least two b's ("abb", "abbbb", etc.);
  • "ab{3,5}": from three to five b's ("abbb", "abbbb", or "abbbbb").
  • "ab{0,}" → "ab*"
  • "ab{1,}" → "ab+"
  • "ab{0,1}" → "ab?"

Now, to quantify a sequence of characters, put them inside parentheses:

  • "a(xxyy)*": matches a string that has an a followed by zero or more copies of the sequence "xxyy";
  • "a(bc){1,5}": one through five copies of "bc."; ("abc", "abcbc" , "abcbcbc", "abcbcbcbc", or "abcbcbcbcbc")

There's also the '|' symbol, which works as an OR operator:

  • "hi|hello": matches a string that has either "hi" or "hello" in it;
  • "(b|cd)ef": a string that has either "bef" or "cdef";
  • "(a|b)*c": a string that has a sequence of alternating a's and b's ending in a c; ("ac", "bc", or "c")

A period ('.') stands for any single character:

  • "a.[0-9]": matches a string that has an a followed by one character and a digit; ("ax1", "ak7", etc.)
  • "^.{3}$": a string with exactly 3 characters.
  • "^(100)(\.[0-9]{1,2})?$" : "100"이거나 100 다음에 소수점이 있다면 첫째나 둘째자리까지 있다.

Bracket expressions specify which characters are allowed in a single position of a string:

  • "[ab]": matches a string that has either an a or a b (that's the same as "a|b");
  • "[a-d]": a string that has lowercase letters 'a' through 'd' (that's equal to "a|b|c|d" and even "[abcd]");
  • "^[a-zA-Z]": a string that starts with a letter;
  • "[0-9]%": a string that has a single digit before a percent sign;
  • ",[a-zA-Z0-9]$": a string that ends in a comma followed by an alphanumeric character.

You can also list which characters you DON'T want -- just use a '^' as the first symbol in a bracket expression (i.e., "%[^a-zA-Z]%" matches a string with a character that is not a letter between two percent signs).

  • "[^abc]": a, b, 또는 c를 제외한 문자.
  • "[^0-9]: 숫자를 제외한 문자.

특수문자에 해당하는 문자 사용하기

\ 는 특수 문자를 문자 자체로 해석하도록 하는 Escape 문자로 사용된다. ? 자체를 찾으려고 하면 \? 와 같이 사용되어야 한다.
\ 를 사용해야 하는 문자로는 ^ \ | [] () {} . * ? + 가 있다. 이 문자들을 문자 자체로 해석을 하기위해서는
\^ \\ \| \[ \( \{ \. \* \? \+ 등과 같이 사용해야 한다.

In order to be taken literally, you must escape the characters "^.[$()|*+?{\" with a backslash ('\'), as they have special meaning.
On top of that, you must escape the backslash character itself in PHP3 strings, so, for instance, the regular expression "(\$|?[0-9]+" would have the function call: ereg("(\\$|?[0-9]+", $str) (what string does that validate?)

Just don't forget that bracket expressions are an exception to that rule--inside them, all special characters, including the backslash ('\'), lose their special powers (i.e., "[*\+?{}.]" matches exactly any of the characters inside the brackets). And, as the regex man pages tell us: "To include a literal ']' in the list, make it the first character (following a possible '^'). To include a literal '-', make it the first or last character, or the second endpoint of a range."

예를 들어 what?이라는 물음표로 끝나는 문자를 찾고 싶다고, egrep 'what?' ...이라고 하면 ?이 특수문자이므로 wha를 포함한 whale도 찾게 된다. 또, 3.14로 찾을때는 3+14 등도 찾게 된다.

특수문자가 [] 안과 밖에서 다르다는 점을 생각하여 각각의 경우를 살펴보자. 우선 [] 밖의 경우는,

  • \을 특수문자 앞에 붙이기. 예, "what\?", "3\.14"
  • []을 사용하기. 예, "what[?]", "3[.]14"

첫번째 방법은 보통 escape라고 부르며, 특수문자 앞에 \을 붙여서 특수문자의 특수한 기능을 제거한다. 두번째 방법은 [] 밖의 많은 특수문자들이 [] 안에서는 일반문자가 되는 점을 이용한 것이다. 보통 첫번째 방법을 많이 사용한다.
이 때 \도 뒤에 나오는 특수문자를 일반문자로 만드는 특수문자이기 때문에, 문자 그대로의 \을 나타내려면 \\을 사용해야 한다. 물론 [\]도 가능하다.

[] 안의 특수문자는 위치를 바꿔서 처리한다. 먼저, ^는 [^abc]와 같이 처음에 나와야만 의미가 있으므로 [abc^]와 같이 다른 위치에 사용하면 된다. -는 [a-z]와 같이 두 문자 사이에서만 의미가 있으므로 [-abc]나 [abc-]와 같이 제일 처음이나 마지막에 사용한다. (grep과 같이 도구에 따라 역으로 일반 문자앞에 \를 붙여서 특수문자를 만드는 경우가 있다.)

For completeness, I should mention that there are also collating sequences, character classes, and equivalence classes. I won't be getting into details on those, as they won't be necessary for what we'll need further down this article. You should refer to the regex man pages for more information.

character class의 예

  • [[:alpha:]][a-zA-Z]
  • [[:digit:]][0-9]
  • [[:alnum:]][0-9a-zA-Z]
  • [[:space:]]공백문자

 

2. 응용 예제

lidating Money Strings

Ok, we can now use what we've learned to work on something useful: a regular expression to check user input of an amount of money. A quantity of money can be written in four ways we can consider acceptable: "10000.00" and "10,000.00", and, without the cents, "10000" and "10,000". Let's begin with:

^[1-9][0-9]*$

That validates any number that doesn't start with a 0. But that also means the string "0" doesn't pass the test. Here's a solution:

^(0|[1-9][0-9]*)$

"Just a zero OR some number that doesn't start with a zero." We may also allow a minus sign to be placed before the number:

^(0|-?[1-9][0-9]*)$

That means: "a zero OR a possible minus sign and a number that doesn't start with a zero." Ok, let's not be so strict and let the user start the number with a zero. Let's also drop the minus sign, as we won't be needing it for the money string. What we could do is specify an optional decimal fraction part in the number:

^[0-9]+(\.[0-9]+)?$

It's implicit in the highlited construct that a period always comes with at least one digit, as a whole set. So, for instance, "10." is not validated, whereas "10" and "10.2" are.

^[0-9]+(\.[0-9]{2})?$

We specified that there must be exactly two decimal places. If you think that's too harsh, you can do the following:

^[0-9]+(\.[0-9]{1,2})?$

That allows the user to write just one number after the period. Now, as for the commas separating the thousands, we can put in:

^[0-9]{1,3}(,[0-9]{3})*(\.[0-9]{1,2})?$

"A set of 1 to 3 digits followed by zero or more sets of a comma and three digits." Easy enough, isn't it? But let's make the commas optional:

^([0-9]+|[0-9]{1,3}(,[0-9]{3})*)(\.[0-9]{1,2})?$

That's it. Don't forget that the '+' can be substituted by a '*' if you want empty strings to be accepted also (why?). And don't forget to escape the backslash for the function call (common mistake here). Now, once the string is validated, we strip off any commas with str_replace(",", "", $money) and typecast it to double so we can make math with it.

 

Validating E-mail Addresses

Ok, let's take on e-mail addresses. There are three parts in an e-mail address: the POP3 user name (everything to the left of the '@'), the '@', and the server name (the rest). The user name may contain upper or lowercase letters, digits, periods ('.'), minus signs ('-'), and underscore signs ('_'). That's also the case for the server name, except for underscore signs, which may not occur.

Now, you can't start or end a user name with a period, it doesn't seem reasonable. The same goes for the domain name. And you can't have two consecutive periods, there should be at least one other character between them. Let's see how we would write an expression to validate the user name part:

^[_a-zA-Z0-9-]+$

That doesn't allow a period yet. Let's change it:

^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*$

That says: "at least one valid character followed by zero or more sets consisting of a period and one or more valid characters."

To simplify things a bit, we can use the expression above with eregi(), instead of ereg(). Because eregi() is not sensitive to case, we don't have to specify both ranges "a-z" and "A-Z" -- one of them is enough:

^[_a-z0-9-]+(\.[_a-z0-9-]+)*$

For the server name it's the same, but without the underscores:

^[a-z0-9-]+(\.[a-z0-9-]+)*$

Done. Now, joining both expressions around the 'at' sign, we get:

^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*$

Microsoft .NET framework의 RegularExpressionValidate 컨트롤에서는
^[_a-zA-Z0-9]+([-+.][_a-zA-Z0-9]+)*@[_a-zA-Z0-9]+([-.][_a-zA-Z0-9]+)*\.[_a-zA-Z0-9]+([-.][_a-zA-Z0-9]+)*$
이렇게 쓰고있다. 이게 더 정확한 듯 하다. 위의 것은 '-'으로 시작하는 것을 허용하는데 이것은 그렇지 않다.

 

주민등록번호

주민등록번호는 "6자리의 숫자 - (1|2|3|4)로 시작하는 7자리의 숫자" 의 형태로 되어있다.

[0-9]{6}-(1|2|3|4)[0-9]{6}

 

자연수 및 유리수

<script language="javascript">
<!--
function realCheck(Str) {
      var fooPat=/^[1-9][0-9]*(\.[0-9]+)?$/
      var matchArray=Str.match(fooPat)
      if (matchArray==null) {return false;}
      return true;
}

function positiveIntCheck(Str) {
      var fooPat=/^[1-9][0-9]*$/
      var matchArray=Str.match(fooPat)
      if (matchArray==null) {return false;}
      return true;
}
//-->
</script>

 

URL 주소

URL주소의 형식은 www.aaa.net 과 같으며 영숫자 . \ ? & _ = ~ + 등으로 이루어져 있다.

[0-9a-zA-Z_]+(\.[0-9a-zA-Z/\?_=+~]+)*

(http|ftp|https):/{2}[0-9a-zA-Z_]+(\.[0-9a-zA-Z/\?_=+~]+)*

 

E-mail 기타 등등


if(!eregi("^([[:alnum:]_%+=.-]+)@([[:alnum:]_.-]+)\.([a-z]{2,3}|[0-9]{1,3})$",$email)) 
{ 
    echo "잘못된 email address 다.";  
} 

if(!ereg("([^[:space:]])",$name)) {
echo("<script>alert('이름을 입력하세요!');history.go(-1)</script>");
exit;
}

if(!ereg("([a-zA-Z0-9]+)@([a-zA-Z0-9])([.a-zA-Z0-9]+)([a-zA-Z0-9])$",$email)) {
echo("<script>alert('올바른 E-Mail 주소가 아닙니다.');history.go(-1)</script>");
exit;
}

if(!ereg("(^[0-9a-zA-Z]{4,8}$)",$passwd)) {
echo("<script>alert('비밀번호는 4자에서 8자까지의 영문자 또는 숫자로 입력하세요!');history.go(-1)
</script>");
exit;
}

if(!ereg("([^[:space:]])",$title)) {
echo("<script>alert('제목을 입력하세요!');history.go(-1)</script>");
exit;
}

 

Other uses

Extracting Parts of a String

ereg() and eregi() have a feature that allows us to extract matches of patterns from strings (read the manual for details on how to use that). For instance, say we want do get the filename from a path/URL string -- this code would be all we need:

ereg("([^\\/]*)$", $pathOrUrl, $regs);
echo $regs[1];

Advanced Replacing

ereg_replace() and eregi_replace() are also very useful: suppose we want to separate all words in a string by commas:

ereg_replace("[ \n\r\t]+", ",", trim($str));

 

찾은문자열 사용하기

정규식을 이용하여 문자열을 찾는 함수는 ereg()와 eregi() 함수이다. 이 함수 문자열에서 찾고자 하는 문자의 패턴이 있는지 확인할 수 있다. 그런데 문자열이 존재하는지 확인만하고 어떤 문자열을 찾았는지 볼수 있는 방법은 없을까?
ereg("a(b*)(c+)", "abbbbcccd", $reg);
다음과 같이 세번째 인자를 주면 주어진 패턴과 일치하는 문자열을 구할수 있다. 그럼 $reg 에는 어떤것들이 저장되어있을까 ? $reg는 배열의 형태로 반환이 된다.
$reg[0] 에는 주어진 전체 패턴인 a(b*)(c+)에 대한 내용이 들어간다. 위의 함수 결과에서는 abbbbccc 가 된다.
$reg[1]에는 첫 번째 (b*) 에 해당하는 bbbb가 들어간다.
$reg[2]에는 두 번째 ()인 (c+) 에 해당하는 ccc가 들어가게 된다.
그러면 ()안에 또 ()가 들어가면 어떤 식으로 해석이 될까?
만약에 (a+(a*))a(b+(c*))라는 패턴이 있으면 어떤 식으로 들어가게 될 지를 알아보자.
먼저 $reg[0]에는 전체 패턴인 (a+(a*))a(b+(c*))에 대한 내용이 들어간다.
$reg[1]에는 첫 번째 큰 ()인 (a+(a*)) 에 대한 내용이 들어가고, $reg[2] 에는 이 괄호 안에 있는 작은 괄호 (a*) 에 대한 내용이 들어간다. $reg[3], $reg[4] 에는 각각 (b+(c*)), (c*)의 내용이 들어가게 된다.

 

정규식을 이용한 문자열 치환

정규 표현식을 이용하여 문자열을 치환하는 함수는 ereg_replace()와 eregi_replace() 함수가 있다.
두 함수의 차이점은 eregi_replace()의 경우에는 영문자의 대소문자 구분을 하지 않는것이다.

$str = "test test"; // 두 개의 test 사이에는 4개의 스페이스가 있다.
&str = ereg_replace(" "," ", $str);
이 명령의 실행결과로 $str = "test test"; 가 된다.
이는 내용을 출력할 때 많이 사용되는 구문이다. 그럼 문자열 치환시에 문자열 패턴을 사용할 경우 찾아낸 문자열들을 다시 사용할 방법은 어떤 것이 있는가?
이럴 때 사용되는 것들이 \\0, \\1, \\2, ... 등이다.
다음과 같은 패턴이 있다고 하자.
([_0-9a-zA-Z]+(\.[_0-9a-zA-Z]+)*)@([0-9a-zA-Z]+(\.[0-9a-zA-Z]+)*)
이런 패턴이 있을 경우 전체가 \\0이 된다.
\\1([_0-9a-zA-Z]+(\.[_0-9a-zA-Z]+)*) 이 된다. \\2\.[_0-9a-zA-Z]+)이 된다. \\3([0-9a-zA-Z]+(\.[0-9a-zA-Z]+)*) 이 되고 \\4(\.[0-9a-zA-Z]+)이 된다.
다음과 같은 구문이 있을 경우:

$mail = "abc@abc.net";
$pattern = "([_0-9a-zA-Z]+(\.[_0-9a-zA-Z]+)*)@([0-9a-zA-Z]+(\.[0-9a-zA-Z]+)*)";
$link = ereg_replace($pattern, "<a href = 'mailto:\\0'>\\0</a>",$mail);

결과는 <a href='mailto:abc@abc.net'>abc@abc.net</a>
이 된다.

 

Some exercises

Now here's something to make you busy:

  • modify our e-mail-validating regular expression to force the server name part to consist of at least two names (hint: only one character needs to be changed);
  • build a function call to ereg_replace() that emulates trim();
  • make up another function call to ereg_replace() that escapes the characters '#', '@', '&', and '%' of a string with a '~'.
Eclipse IDE Tool 2008. 12. 9. 11:21

subversion 설치 및 서버 설치 이클립스 연동


Step1 다운로드.

1. 아래 주소 or 첨부파일에서 다운로드
    http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91

 

2. 현재 (2008년 11월 22일) 최신 버젼인 1.5.3 을 받자. (아래 캡쳐 화면 참조)

 




Step2 서버설치.

1. 다운받은 subversion 설치 파일을 더블 클릭해서 설치한다.

    [Next] 만 계속 누르면 설치된다.

 

2. C: 드라이브에 svnrepos 라는 폴더를 생성한다. (폴더명은 자유롭게 정해도 된다.)

    명령 프롬프트를 실행해서 C:\svnrepos 라는 폴더로 이동한다.

    C:\svnrepos>svnadmin create c:\svnrepos

    위의 명령을 실행하면 아래의 캡쳐와 같은 폴더들이 생성된다.

 

3. conf 폴더로 이동하면 아래의 캡쳐와 같은 파일들이 보인다.

 

3-1. svnserve.conf 파일을 열어서 아래와 같이 편집한다.

    ( C:\svnrepos\conf\svnserve.conf )

 

    [general]

    anon-access = read
    auth-access = write

    password-db = passwd

 

   ↑ 위의 뜻

    anon-access = read 는 인증되지 않은 사용자는 읽기만 가능. (접근 못하게 하려면 none)

    auth-access = write 는 인증된 사용자는 쓰기도 가능

 

3-2. 같은 conf 폴더의 passwd 파일의 내용을 아래와 같이 편집한다. (참고 : 파일 확장자가 없다.)

    ( C:\svnrepos\conf\passwd )

 

     [users]
     hong = hongpass
     jang = jangpass

 


Step3 서버자동실행설정(옵션).

Subversion 서버를 자동 실행해주는 유틸리티를 설치하여 자동 실행해보자.

 


1. 다운로드 주소 : http://www.pyrasis.com/main/SVNSERVEManager

    프로그램의 제목은 SVNSERVE Manager 이고 우리나라 개발자 분이  만들었네요!!!

    사용해보고 좋으면 위의 싸이트에 가서 감사 인사 정도는 남겨주세요.

    SVNManager-1.1.1-Setup.msi 를 다운받고 더블 클릭해서 설치.

    [Next] 계속 클릭 설치 완료!

 

2. 바탕화면의 SVNSERVE Manager 를 더블 클릭하여 실행.

    2-1. [...] 버튼 클릭한 후 subversion 에서 설정한 C:\svnrepos 폴더를 지정.

    2-2. Automatically run program when you log on 선택해서 자동 실행 설정.

    2-3. [Start] 버튼 클릭. 시작.

    2-4. [Hide] 버튼 클릭하면 트레이 아이콘으로 숨는다.

 

[출처] [소스 관리] Subversion 서버 다운로드|작성자 메멘토


이클립스와 subversion  연동방법(옵션)

  • 이클립스의 Help>software updates 선택.
    - Search for new features to install 버튼 선택 후 Next 클릭.
  • Subclipse update site 선택
    - 없을 경우 New Remote Site 추가(Name : subclipse, URL : http://subclipse.tigris.org/update).
    - finish 클릭.
  • Install 화면에서 Next, Next 후 Finish버튼 클릭
    - 자동으로 Eclipse에서 http://subclipse.tigris.org/update 사이트에 접속하여 패키지 다운로드 수행함.
  • Install All 클릭
    - 패키지 전부 다운 받으면 Install All 클릭을 통해 설치함.
  • 재시작 버튼 클릭
    - 설치가 완료되면 재시작 버튼을 클릭하여 이클립스 재시작함.
  • svn 추가 확인
    - window->preferences에 Team부분을 보면 다음처럼 SVN관련이 추가된 것을 볼 수 있음.
  • 메뉴에 window -> show view -> other -> SVN 하위의 SVN repositories를 선택. 
    - 선택하면 SVN repositories 화면에 생성됨.
    - SVN repositories 화면에서 마우스 오른쪽을 클릭해서 new>repository location으로 새 저장소를 생성한다.
    - http://www.mimul.com/svn/sample URL 등록하고 mimuluser/패스워드를 기입하고 Finish를 클릭함.
    - VN repositories에 해당 svn이 나타남.
  • 신규/기존 프로젝트에서 SVN 연결 시도
    - Project에서 마우스 오른쪽 클릭>Team>Shared Project 클릭
    - 셋팅이 되어 있는 SVN repository를 선택하면 된다. (만약 접근 오류가 나오면 workspace 디렉토리 속성의 읽기 전용인지 확인하여 해제를 해줌)
    - Select All을 클릭하여 해당 프로젝트의 모든 파일을 선택하여 Commit을 수행함.

Eclipse IDE Tool 2008. 12. 9. 11:10

이클립스 비주얼에디터 플러그인(스윙플러그인)

이클립스 비주얼 에디터(Visual Editor) 플러그인 다운로드 및 설정 방법

 

이클립스 WTP 2.0.1 (이클립스 3.3 Europa 유로파 버젼) 이라고 가정하고 설명한다.

 

1. 플러그인을 다운로드 한다.

유로파 용(3.3) 다운로드 => : http://www.ehecht.com/eclipse_ve/ve_eclipse_33_v200709242300_win.zip

가니메데 용(3.4) 다운로드 => : http://www.ehecht.com/eclipse_ve/ve_eclipse_34_200807092330_win.zip

 

2. 다운로드 결과.

ve_eclipse_33_v200709242300_win.zip 파일을 여기서는 바탕 화면에 다운 받았다.

 

3. 압축 해제

해제하면 features plugins 폴더가 나온다.

4. 이클립스 설치 폴더에 features plugins 폴더를 붙여넣기 한다. (예 : C:\eclipse 에 붙여넣기 한다.)

(주의 사항 : 이 때 꼭 이클립스를 종료한 후 붙여넣기를 해야 한다. 실행 상태에서 하면 오류 발생할 수 있다.)

이 때 같은 폴더가 있기 때문에 메세지 상자가 뜨는데 [모두 예] 를 선택해주면 된다.

설치 완료.

 

5. Visual Editor 를 사용해 보자.

File -> New -> Other 선택한다.

 

 

6. 스크롤해서 Java -> Visual Class 선택 -> [Next] 클릭

 

 

7. 소스를 만들어보자.

Name : TestVE 라고 하고, Swing 의 Frame 을 상속 받고, [Finish]

 

 

8. 최종 결과 화면 (Palette 를 보려면 에디터 창의 오른쪽 부분의 ◁ 을 클릭하면 된다.)

 

 

. Visual Editor 를 사용해서 GUI 프로그래밍을 편하게 해보자^^


Eclipse IDE Tool 2008. 12. 3. 11:00

Flex3.0] Flex 로그남기기 (spitzer.flair_1.0.3)


Flex에서 디버그 플레이어가 설치하고 trace()하게 되면 로그를 찍게 되는데
플러그인을 설치하여 좀더 편한방법으로 사용할수 있다.

우선적으로 자신이 디버그플레이어를 사용하고 있는지 확인해보자!!
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507&sliceId=1

아래처럼 yes라고 나오면 정상적으로 설치된것인다.
yes라고 나오는 사람은  저아래부분으로 건너띄어서 설치부분만 보면될것이다.


만약 No라고 나오는 사람은 디버그 플레이를 삭제하고 재설치해야된다.

※ 인터넷 브라우져를 닫고 시도하는것을 권장 종종 위에대로 햇는데도 안된다고 하는 사람있다;;

플레이서 삭제 uninstaller :
http://download.macromedia.com/pub/flashplayer/current/uninstall_flash_player.exe 

레지스트리 삭제
시작 - 실행 - regedit - ctrl+F(편집-찾기) - SafeVersions 입력 - 찾으면 해당 폴더삭제

디버그플레이어 재설치 :
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14266&sliceId=2

10디버그 플레이어(26M) 다운로드 후에 압축풀면된다.
그러면 여러개 파일이 나오는데 그중에서 flashplayer10r12_36_winax_debug.exe 를 실행하여 설치하면된다.

위에 작업 완료후에도 디버그플레이어 확인 페이지에서 NO로 나오게되면 인터넷 브라우져를 닫고 시도하면 정상적으로 될것이다.

============================= 여기까지는 거의 잡설이였습니다. =======================================

/* 이클립스 종료상태에서 하시면 될듯합니다. */


위의 파일을 일단 다운받은후 압축을 해제한다.
압축해제하면 폴더가 하나 나오는데 그 폴더를 plugin폴더에 넣으면된다.

빌더를 사용하는사람은 플렉스 빌더의  plugin폴더에 넣고 이클립스 플러그인버전을 사용하는 사람은 이클립스 plugin폴더에 넣으면된다.

step1. 
      각자 자신에 맞는 사용자계정폴더로 이동후 (  C:\Documents and Settings\사용자계정  ) mm.cfg파일을
      하나 만든다. 그냥 메모장 열어서
      
TraceOutPutFileName=c:/temp/flashlog.txt
ErrorReportingEnable=1
TraceOutputFileEnable=1

위와 같은 내용을 적고 저장할대 mm.cfg로 저장하면된다.

         ex>  C:\Documents and Settings\dh




location에 아래내용 복사해서 넣으면된다..
그냥 폴더로 보면 보이지 않으니 아래 dh부분만 자신에 맞는것으로 바꾸로 복사해서 넣으면된다.

C:\Documents and Settings\dh\Application Data\Macromedia\Flash Player\Logs\flashlog.txt

이렇게 하면 모든것이 완료된것인다.

이클립스에서 아래처럼 FlashLog를 선택하게 되면 이클립스 하단탭에 Flash Log가 나타난다.
그러면 trace()된 부분이 모드 그 화면에 찍혀서 보이게 된다...






Eclipse IDE Tool 2008. 11. 26. 16:41

eclipse europa ganymede wtp ?


처음 환경셋팅 하는사람들은 참으로 이클립스 뭐를 선택해야 하는지부터 너무 복잡하다.

복잡하다라기 보다는 버전이 너무 많이 나와서 뭘선택해야할지 난감스럽기도하다.

WTP란? 이클립스 기본 개발툴에 Web Tool Project라는 웹 개발 관련된 플러그인이 모두 설정된 버전을 말한다.
            따라서 이것은 이클립스 받고 웹에서 작업하기 위한 추가적인 웹플러그인을 기본적으로 포함되었다는
            것을 의미한다.

그리고 all-in-one 이 있고 (WTP, JST, WST combined, SDK) 이 있는데 all-in-one 말그대로 하나에
모든것이 다 포함된 버전이다. 각각 설치하기 귀찮으면 이거 하나 버전 받으면 OK 다.

그리고 특징중에 하나가 Web Tools Platform Project 1.5.3 이번은 이클립스3.2.2 기반의 WTP이다.
3.2.2는 JDK1.4를 지원해주는 마지막 이클립스라는 점이 가장 큰 특징이다.

약간의 경험을 첨부하자면 이클립스2.1버전에서 이클립스 CVS로 불러와지는녀석들이 3.3이상 버전에서는
CVS Checkout이 안되는경우가 있다. 그럴때는 3.2.2 버전을 받아서 해보면 분명될것이다. 

3.3버전은 유로파라고 불리우고 3.4버전은 가니메데, 그리고 3.4버전준에 RC1버전도 있다.
RC버전이란 Release Cadidate 약자로 테스트중인 베타버전을 의미한다.

웹에서 필요한 프로젝트 즉 Dynamic Web Project같은 프로젝트가 필요하게 되면 3.2.2WTP버전을 받으면될것이고
3.3 이상버전부터는 Eclipse IDE for Java EE Developers (163 MB)  Java EE 버전을 받으면 될것이다.

그렇치 않고 자바어플리케이션이나 java공부를 위해서는 sdk버전을 받아도 된다. 그러나 JavaEE 버전받으면
모두 지원하니 위에버전 추천!!

JavaEE버전은 WTP설치가 굳히 할필요없고 다 지원해주는걸로 알고있다.
3.3버전부터 유로파라고 하여 EE버전에서 WTP지원해주는것을 지원해주기때문이다.

해당 url 이클립스 버전별 sdk버전 받을수 있는 목록
http://archive.eclipse.org/eclipse/downloads/index.php

아래는 버전별로 WTP 버전별로 다운받을수 있는 사이트 목록이다.
참조: http://www.bea.com/distros/eclipse.html
Product:

Size:
Description:
BEA Workshop™ Studio with Adobe Flex Builder 2
30 day evaluation
505MB
Workshop Studio provides end-to-end, browser-to-database solution including JSP, Struts/Tiles, JSF, Spring IDE, EJB3 JPA, BEA Kodo & Hibernate for all major servers. Now includes Flex Builder 2, Flex Charting 2, and Flex SDK.
Product:
Size:
Description:
BEA Workshop™ for JSP
120MB
Now includes full, multiplatform debugging and AppXRay™ Support, allowing a complete JSP IDE experience for FREE!
Product:
Size:
Description:
Eclipse 3.3 for Java Developers
80MB
The essential tools for any Java developer, including a Java IDE, a CVS client, XML Editor and Mylyn.
Windows Linux (x86 / GTK2) Mac OS X
Product:
Size:
Operating System:
Eclipse 3.2.2 SDK
121MB
Windows Linux (x86 / GTK2) Mac OS X
Product:
Size:
Operating System:
Eclipse 3.2.1 SDK
120MB
Windows Linux (x86 / GTK2) Mac OS X
Product:
Size:
Operating System:
Eclipse 3.2 SDK
120MB
Windows Linux (x86 / GTK2) Mac OS X
Product:
Size:
Operating System:
Web Tools Platform Project 1.5.4 all-in-one
207MB
Windows Linux (x86 / GTK2) Mac OS X
Product:
Size:
Operating System:
Web Tools Platform Project 1.5.4 (WTP, JST, WST combined, SDK)
53MB
ALL
Product:
Size:
Operating System:
Web Tools Platform Project 1.5.3 all-in-one
203MB
Windows Linux (x86 / GTK2) Mac OS X
Product:
Size:
Operating System:
Web Tools Platform Project 1.5.3 (WTP, JST, WST combined, SDK)
50MB
ALL
Product:
Size:
Operating System:
Web Tools Platform Project 1.5.2 all-in-one
205MB
Windows Linux (x86 / GTK2) Mac OS X
Product:
Size:
Operating System:
Web Tools Platform Project 1.5.2 (WTP, JST, WST combined, SDK)
49.8MB
ALL
Product:
Size:
Operating System:
Web Tools Platform Project 1.5.1 all-in-one
205MB
Windows Linux (x86 / GTK2) Mac OS X
Product:
Size:
Operating System:
Web Tools Platform Project 1.5.1 (WTP, JST, WST combined, SDK)
49.8MB
ALL
Product:
Size:
Operating System:
Web Tools Platform Project 1.5 all-in-one
182MB
Windows Linux (x86 / GTK2) Mac OS X
Product:
Size:
Operating System:
Web Tools Platform 1.5 (WTP, JST and WST combined, SDK)
48.9MB
ALL