デジタル大要
グーグル
Translate to EnglishÜbersetzen Sie zum Deutsch/GermanTraduzca al Español/SpanishTraduisez au Français/FrenchTraduca ad Italiano/ItalianTraduza ao Português/Portuguese日本語に翻訳しなさい /Japanese
한국어에게 번역하십시오/Korean中文翻译/Chinese Simplified中文翻译/Chinese Traditionalترجمة الى العربية/ArabicVertaal aan het Nederlands/DutchΜεταφράστε στα ελληνικά/GreekПереведите к русскому/Russian
Plugin by Taragana

How to create windows shortcut using Ant? Windowsのショートカットを作成する方法を使用してAntのですか?

Apache Antの Why do you need to create a shortcut using Ant?どうしてそんなことにショートカットを作成する必要がありますを使用して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.ただこのトピックのためだけに作らバズthatsを作成することが実際に行うことができますAntの特定のコマンドを実行するすべてのオペレーティングシステムをしてからビルドしています。 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. Antの現在広く使用され、有名なオペレーティングシステムをサポートしWindowsのように、アップル、リナックス、 Solaris上では、エクス等をサポートすることができます。オペレーティングシステムのリストを入手して太陽からの仕様です。 You can get your current operating system by executing the following line of code in your java programすることができます。入手して現在のオペレーティングシステムを実行して次の行のコードをあなたのJavaプログラム

 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.この役にたちましたれないことがありますWebアプリケーションの開発者がこれを構築する際に使用することも、企業やWebアプリケーションを自動化するいくつかの事です。 But desktop application developers who may use Swing sets etc may find this tip very useful.しかし、デスクトップアプリケーション開発者が使用するスイングwho年5月、このチップセット等があります非常に便利です。 You can achieve this by using Exec Task in Ant which is the counter part of Runtime.exec in java.これを使用して実行することができます。達成するためのAntタスクは、 Javaでruntime.execカウンター部分です。 Here I am not going to explain you about How to run or create Ant Build.ここで私は行くを実行する方法を説明するかについてはAntのビルドを作成します。 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さあ、やってみよう、チュートリアルに入る前に、我々はWindowsのコマンドを実行する方法を見て環境変数のパスを取得するに

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および' / 'は必須のコマンドを実行するには、コマンドシェルを開きます。 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.これを行うにWindowsのシェルの仕事です。 Kindly follow the code snippet given below which creates a shortcut file for a java archive file,親切に次のコードスニペットの下で与えられたファイルは、通常のショートカットを作成するJavaのアーカイブファイル、

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のplsには対応するコードスニペットを見つけ、 Antのビルドの一部を使用して実行タスク

Share or Bookmark: These icons link to social bookmarking sites where readers can share and discover new web pages. 共有、またはブックマーク: これらのアイコンのリンクを社会的ブックマーキングサイトを発見する読者が共有し、新しいウェブページをご覧ください。 DiggSphinndel.icio.usFacebookMixxGoogle


See Similar Posts同様の記事を参照

Leave a Commentコメントを残す