Compendio digitale
Google
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? Come creare collegamento di Windows usando Ant?

Apache Ant Why do you need to create a shortcut using Ant? Perché avete bisogno di creare un collegamento usando Ant? When do you need to create that ? Quando hai bisogno per creare questo? These might the questions that you will be thinking at this moment when you had a look into this topic. Questi potrebbero domande che ti verrà pensando in questo momento, quando si ha uno sguardo in questo argomento. Yep I am here to answer these questions. Yep Sono qui per rispondere a queste domande. 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. Ho appena fatto questo argomento solo per creare un brusio thats, ma in realtà è possibile effettuare Ant per l'esecuzione di qualsiasi sistema operativo comandi specifici attraverso il vostro costruire. It may be shortcut, or if you want to execute any operating system specific command you can make use of this tutorial. Essa può essere scelta rapida, o se si desidera eseguire qualsiasi sistema operativo comando specifico è possibile fare uso di questo 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 supporta attualmente diffuse e famoso sistemi operativi come Windows, Apple, Linux, Solaris, AIX, ecc È possibile ottenere la lista dei sostenitori del sistema operativo da sole disciplinare. You can get your current operating system by executing the following line of code in your java program Potete ottenere il vostro attuale sistema operativo di eseguire la seguente riga di codice nel tuo programma Java

 System.getProperty( "os.name" ); System.getProperty ( "os.name"); 

When do you need to use this? Quando hai bisogno per utilizzare questo? 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. Questo può non essere utile per sviluppatori di applicazioni web, ma possono anche utilizzare questo edificio, mentre la loro impresa o applicazione web per l'automazione di alcune cose. But desktop application developers who may use Swing sets etc may find this tip very useful. Ma desktop sviluppatori di applicazioni che possono utilizzare Swing set etc possono trovare questo punta molto utile. You can achieve this by using Exec Task in Ant which is the counter part of Runtime.exec in java. È possibile raggiungere questo obiettivo utilizzando Exec compito in Ant che è la parte del contatore Runtime.exec in Java. Here I am not going to explain you about How to run or create Ant Build. Qui non ho intenzione di spiegare voi su come eseguire o creare Ant Build. It does not fall under this scope of short tutorial. Essa non rientra nel campo di applicazione di questo breve tutorial.

Here we go, before getting into the tutorial we will see how to execute a windows command to get the environmental variable path Qui andiamo, prima di salire nel tutorial vedremo come per l'esecuzione di comandi di Windows per ottenere la variabile ambientale percorso

cmd is the command prompt for windows higher than win 98 and ‘/c’ is mandatory to execute the command in the command shell. cmd è il prompt dei comandi per le finestre superiori a 98 e vincere '/ c' è obbligatorio per eseguire il comando nella shell di comando. To know more about Exec task kindly refer Per saperne di più su Exec compito gentilmente di riferimento here qui . 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. Ora per giungere a questo punto, per creare un collegamento a meno che non avete Windows Resource Kit o leggere fatta utility dovete usare VB Script per creare collegamenti. The script will be making use of WScript. Lo script sarà che si avvalgono di WScript. Shell of windows to do the job. Shell di Windows a fare il lavoro. Kindly follow the code snippet given below which creates a shortcut file for a java archive file, Gentilmente di seguire il frammento di codice dato al di sotto della quale crea un file del collegamento per un file di archivio java,

Save the above code as shortcut.vbs. Salvare il codice come sopra shortcut.vbs. Pls find the corresponding code snippet for part of the ANT Build that uses exec task Pls trovare il corrispondente frammento di codice per una parte del ANT Build che utilizza compito exec

Share or Bookmark: These icons link to social bookmarking sites where readers can share and discover new web pages. Condividere o Favoriti: Queste icone link a Social Bookmarking siti in cui i lettori possono condividere e scoprire nuove pagine web. DiggSphinndel.icio.usFacebookMixxGoogle


See Similar Posts Vedi simili posti

Leave a Comment Lascia un commento