ant : http://ant.apache.org
ant manual : http://ant.apache.org/manual/index.html

scp manual : http://ant.apache.org/manual/Tasks/scp.html
sshexec manual : http://ant.apache.org/manual/Tasks/sshexec.html

* scp library : http://www.jcraft.com/jsch/
    - 2/3 가량 스크롤을 내리다 보면 Download 있음


* 이클립스에서 ant를 동작시킬 경우
  - Windows > Preferences > Ant > Runtime > Classpath > Global Entries 에 scp 사이트에서 다운받은 jar를 추가


* 사용예

 <?xml version="1.0" encoding="UTF-8"?>
<project name="ad_engine" default="all" basedir=".">
 
 <property name="server.host" value="아이피"/>
 <property name="server.port" value="포트"/>
 <property name="server.username" value="사용자아이디"/>
 <property name="server.password" value="사용자비밀번호">
 
 <target name="all" depends="copy,reboot"/>
 
 <target name="copy">
  <echo>copy</echo>
  <scp file="target/ad_engine.jar" todir="${server.username}:${server.password}@${server.host}:/home/obigo/opt/AdEngine/libs" port="${server.port}" trust="true"></scp>
 </target>
 
 <target name="reboot">
  <echo>reboot</echo>
  <sshexec host="${server.host}" port="${server.port}" trust="true" username="${server.username}" password="${server.password}" command="cd opt/AdEngine; bin/stop.sh; bin/boot.sh start" timeout="10000" failonerror="false" />
 </target>
 
</project>


* Jenkins Ant library에 scp 추가
    - jenkins설치폴더/tools/hudson.tasks.Ant_AntInstallation/ant_버전/lib




 

출처 : http://divestudy.tistory.com/17

Eclipse에서 run configuration을 적용하여 프로그램을 실행할 경우 더럽게 귀찮다.


그래서 단축키를 지정해주고 싶었는데 단축키 따윈 없음.


그러다가 찾은 방법임.


엄청 간단함. 은 아니고 생각보단 간단함.


먼저 Help > install new software 선택 후 주소창에 입력 후 work with 에  아래 주소 입력 후 설치

http://puremvcnotificationviewer.googlecode.com/svn/trunk/PracticallyMacroGoogleUpdateSite



설치 완료 되었으면


1. Window > preference 선택 후 "Practically Macro Options"  섹션을 확장하고 Editor Macro Definitor 선택

(귀찮이면 검색창에 "Editor Macro Definitor" 입력)


2. new 버튼 누르고


3. dlg 생기면 오른쪽 리스트에서 Editor Macro script 누르고 가운데 add-> 버튼 누름 그러면 editor 창이 뜸.


4. 기본으로 써있는 텍스트 지우고

 

//Scripts are beanshell format (see http://www.beanshell.org/)
 
//variable               type
//styledText             the org.eclipse.swt.custom.StyledText instance for the current editor
//console                write output to the macro console via console.write(String), .writeln(String), .write(Exception)
//findTarget             the instance of org.eclipse.jface.text.IFindReplaceTarget
import org.eclipse.swt.custom.StyledText;
import org.eclipse.jface.text.IFindReplaceTarget;
 
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.ui.DebugUITools;
    try
    {
      // Terminate process if it already exists from a previous launch
      org.eclipse.debug.core.ILaunch[] allLaunches=DebugPlugin.getDefault().getLaunchManager().getLaunches();
      for (ILaunch l : allLaunches)
      {             
        if (l.getLaunchConfiguration().getName().equals("configuration 이름 입력"))
        {
          console.write("terminating launch: " );
          console.writeln(l.getLaunchConfiguration().getName());
          l.terminate();
          break;
        }
      }
 
        org.eclipse.debug.core.ILaunchConfiguration[] allConfigurations=DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurations();
        for (ILaunchConfiguration config : allConfigurations) {
            if (config.getName().equals("configuration 이름 입력"))
            {
                DebugUITools.launch(config, "debug or run");
                break;
            }
        }
    } catch (CoreException e) {
        e.printStackTrace();
    }
    finally{}


 

"20번과 31번째 줄에서 "configuration 이름 입력" 이부분에 configuration 이름을 입력하면 됨. 

33번째 줄의 "Debug or Run" 에는 상황에 맞게 debug 또는 run을 입력하고 OK 버튼을 누르면 됨


5. 아래 Macro info에 이름을 적어주고 (이름은 나중에 확인해야 하므로 가급적 알아보기 쉬운걸로 하는걸 권장)

id 입력 id는 중복만 안되면 되니깐 아무거나 사용하면됨.


6. 다시 한번 OK 버튼을 눌러서 preference 창을 닫는다. 


7. 다시 Window > preference 선택하여 preference 창을 연다.


8. General 섹션의 keys 를 누른다. type filter text에서 key로 검색해도 됨.


9 가운데 command들 중에서 5번에서 적어준 이름을 찾은 후 선택


10. 왼쪽 아래에 Binding 에 원하는 바로가키 키를 누른다. 


11 ok 버튼을 누른다.


그럼 끝!!!!


redmine : http://www.redmine.org/
redmine plugin list : http://www.redmine.org/projects/redmine/wiki/Plugin_List

ckeditor 다운로드 : https://github.com/a-ono/redmine_ckeditor

참고 : http://mkyojung.wordpress.com/2012/08/30/bitnami-redmine-%EC%84%A4%EC%B9%98-%EA%B4%80%EB%A0%A8-trouble-shooting/
         http://bitnami.com/


0. Redmine이 실행되고 있다면 중지한다.


1. CKEditor를 다운로드 받는다.
    redmine 버전이 1.xx 인 경우 ${RAILS_HOME}/vendor/plugins 폴더에 2.xx 버전인 경우 ${RAILS_HOME}/plugins 폴더에 압축을 해제하고 폴더명으로 redmine_ckeditor 로 변경한다.

   ${RAILS_HOME}은 Redmine 홈 디렉토리로 Redmine을 bitnami 패키지로 설치를 했다면 C:/BitNami\redmine-2.3.2-0/apps/redmine/htdocs 이다.


2. plugins 설치   

C:\BitNami\redmine-2.3.2-0\apps\redmine\htdocs>bundle install --without development test
또는
C:\BitNami\redmine-2.3.2-0\apps\redmine\htdocs>bundle install --no-deployment

참고로 bitnami 패키지로 설치한 경우 cmd 창을 열 때 시작 > 프로그램 > BitNami Redmine Stack > BitNami Redmine Stack 사용 아이콘을 클릭하여 cmd를 열어야 환경파일이 로딩된다. (또는 C:/BitNami/redmine-2.3.2-0/use_redmine.bat) 파일을 클릭하여 실행한 cmd 에서 해도 된다.


3. Redmine을 시작한다.

4. Redmine 로그인 > 관리 (최상단 메뉴) > 플러그인 화면에서 플러그인 설치 확인을 한다. 플러그인이 있으면 설치가 완료 된 것이고 설정 글자를 클릭하면 ckeditor 설정을 할 수 있다.

5. Redmine 로그인 > 관리 (최상단 메뉴) > 설정 > 일반 탭에서 본문형식의 값을 CKEditor로 변경하고 저장하면 완료된다.

출처 : http://pirrip.tistory.com/148

■ 이클립스

1. 메뉴에서 windows > show view > other > Mavn > Maven Repositories 를 선택

2. Maven Repositories 화면의 Global Repositories를 확장해서 보면 central repository가 나오는데 여기서 full index enabled를 체크해주고 rebuild index를 실행시킨다. (한 10~30분 정도 걸리는 듯)

 

3. add dependency 화면에서 원하는 jar를 검색하면 파일이 나오고 선택하면 자동으로 pom.xml에 추가되고 다운로드 된다 ^^

 - add dependency 화면을 못찾겠다면 열심히 뒤져 보도록 ㅋㅋ

 

출처 : http://devday.tistory.com/entry/ArtifactDescriptorException-Failed-to-read-artifact-descriptor-for-xxx

Maven 프로젝트 체크아웃 시 다음과 같은 에러에 직면할 수 있다.

ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.commons:com.springsource.org.apache.commons.logging:jar:1.1.1: ArtifactResolutionException: Failure to transfer org.apache.commons:com.springsource.org.apache.commons.logging:pom:1.1.1 from http://repository.springsource.com/maven/bundles/release was cached in the local repository, resolution will not be reattempted until the update interval of com.springsource.repository.bundles.release has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.commons:com.springsource.org.apache.commons.logging:pom:1.1.1 from/to com.springsource.repository.bundles.release (http://repository.springsource.com/maven/bundles/release): No route to host to http://repository.springsource.com/maven/bundles/release/org/apache/commons/com.springsource.org.apache.commons.logging/1.1.1/com.springsource.org.apache.commons.logging-1.1.1.pom    pom.xml    /spring.test    line 1    Maven Dependency Problem

or


Received fatal alert: protocol_version



이 경우 다음과 같이 한다.

Maven -> Update Dependencies

다음을 체크하고, OK 버튼을 클릭한다.

Force Update of Snapshots/Releases


Java 1.7을 사용해서 이클립스나 JDK 를 실행했을 때에는 위와 같은 방법으로도 되지 않느다.

방법1) 이클립스 기동을 1.8 이상으로 한다.

- eclipse.ini 수정

-vm
../openjdk-1.8.0.242-1.b08/bin/javaw.exe
-startup
... (생략) ...




방법2) JVM 옵션에 TLSv1.2 protocol을 추가한다.

- eclipse.init 수정

... (생략) ...
-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2
-Xms40m
... (생략) ...



+ Recent posts