How to create windows shortcut using Ant? 단축키를 사용하는 방법을 윈도우의 작성 개미?
Why do you need to create a shortcut using Ant? 단축키를 사용하여 만들 필요가 왜 개미? When do you need to create that ? 언제 당신을 만들어야하는가? These might the questions that you will be thinking at this moment when you had a look into this topic. 당신이 생각하는 이들의 질문이 지금이 순간 당신은 우리를 바라볼 때이 주제가합니다. Yep I am here to answer these questions. 물론 여기에 나는이 질문에 대답합니다. I just made this topic just to create a buzz thats it but actually you can make Ant to execute any operating system specific commands through your build. 이 주제에 방금 만든 버즈 끝이니 단지를 만들지만 실제로 만들 수있습니다 개미 특정 명령을 실행을 통해 모든 운영 체제 구축합니다. It may be shortcut, or if you want to execute any operating system specific command you can make use of this tutorial. 할 수도있습니다 단축키, 아니면 모든 운영 체제를 실행 원한다면 구체적인 명령이 자습서를 사용하실 수있습니다. Ant currently supports widely used and famous operating systems like Windows, Apple, Linux, Solaris, AIX etc. You can get the list of supporting operating system from sun specification. 개미 같은 운영 체제에서 현재 지원하는 널리 사용으로 유명한 창문, 사과, 리눅스, 솔라리스, aix 등등의 목록을 얻을 수있습니다 태양 사양에서 운영 체제를 지원합니다. You can get your current operating system by executing the following line of code in your java program 귀하의 현재 운영 체제를 받으실 수있습니다 다음과 같은 줄의 코드를 실행하여 자바 프로그램을
System.getProperty( "os.name" ); system.getproperty ( "os.name"); When do you need to use this? 언제 당신을 사용해야세요? This may not be useful for web application developers but they can also use this while building their enterprise or web application to automate few things. 이 웹 응용 프로그램 개발자에게 유용하지 않을 수있습니다하지만 그들이하는 동안 사용할 수있습니다 건물의 엔터 프라이즈 또는 웹 응용 프로그램을 자동화하는 몇 안되는 것들도있습니다. But desktop application developers who may use Swing sets etc may find this tip very useful. 그러나 데스크톱 응용 프로그램 개발자들은 사용할 수있습니다 세트 등 스윙이 팁을 찾을 수있습니다 매우 유용합니다. You can achieve this by using Exec Task in Ant which is the counter part of Runtime.exec in java. 이것을 사용하실 수있습니다 실행 작업을 달성하기 카운터에있는 개미는 자바의 일부 runtime.exec합니다. Here I am not going to explain you about How to run or create Ant Build. 여기에 전 아무것도 안을 실행하는 방법에 대해 설명 하시거나 개미 빌드합니다. It does not fall under this scope of short tutorial. 이 범위에 해당하지 않습니다 짧은 튜토리얼합니다.
Here we go, before getting into the tutorial we will see how to execute a windows command to get the environmental variable path 여기에 우리가하기 전에, 우리는이 튜토리얼으로 들어갈 수 창 명령를 실행하는 방법을 참조하십시오 환경 변수 경로를
cmd is the command prompt for windows higher than win 98 and ‘/c’ is mandatory to execute the command in the command shell. cmd의 명령 프롬프트가 windows 이상의 승리 98과 '/ c'는 의무를 실행하는 명령을 명령 셸합니다. To know more about Exec task kindly refer 작업을 실행에 대한 자세한 내용을 참조 친절을 알고 here 여기에 . 합니다. Now coming to the point, to create a shortcut unless you don’t have any Windows Resource Kits or read made utilities you have to use VB Script to create shortcuts. 이제 오기가 포인트, 단축키를 만들려하지 않는 한 windows 리소스 킷 또는 읽기는 하나도없고 유틸리티를 만들어 단축키를 사용해야합니다 vb 스크립트를 작성합니다. The script will be making use of WScript. wscript 사용하는 스크립트를 발표할 예정입니다. Shell of windows to do the job. 쉘 버전을 일을합니다. Kindly follow the code snippet given below which creates a shortcut file for a java archive file, 아래에있는 다음 코드 스니펫을 주어진 친절 단축키 파일을 만듭니다 자바 아카이브 파일,
Save the above code as shortcut.vbs. 위의 코드를 shortcut.vbs을 저장합니다. Pls find the corresponding code snippet for part of the ANT Build that uses exec task 해당 코드 스니펫을에 대한 자세한의 일부를 찾을 개미 빌드를 사용하는 작업을 실행





























