Digital Compendium
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? Comment créer des fenêtres de raccourci utilisant Ant?

Apache Ant Why do you need to create a shortcut using Ant? Pourquoi avez-vous besoin de créer un raccourci utilisant Ant? When do you need to create that ? Quand devez-vous créer? These might the questions that you will be thinking at this moment when you had a look into this topic. Celles-ci peuvent les questions que vous penser à ce moment où vous jeté un coup d'oeil à ce sujet. Yep I am here to answer these questions. Ouais je suis ici pour répondre à ces 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. Je viens de faire ce sujet juste pour créer un buzz thats mais en fait vous pouvez faire Ant à exécuter n'importe quel système d'exploitation des commandes spécifiques par l'intermédiaire de votre construction. It may be shortcut, or if you want to execute any operating system specific command you can make use of this tutorial. Il mai être raccourci, ou si vous voulez exécuter n'importe quel système d'exploitation spécifique de commande, vous pouvez faire usage de ce tutoriel. 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 soutient actuellement largement utilisés et célèbre les systèmes d'exploitation comme Windows, Apple, Linux, Solaris, AIX etc Vous pouvez obtenir la liste des système d'exploitation de soleil spécification. You can get your current operating system by executing the following line of code in your java program Vous pouvez obtenir votre système d'exploitation actuel en exécutant la ligne de code suivante dans votre programme Java

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

When do you need to use this? Quand avez-vous besoin pour utiliser cette fonction? 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. Cette mai pas être utile pour les développeurs d'applications Web, mais ils peuvent aussi utiliser ce alors que la construction de leur entreprise ou application Web pour automatiser certaines choses. But desktop application developers who may use Swing sets etc may find this tip very useful. Mais les développeurs d'applications de bureau qui utilisent mai Swing fixe etc mai trouver cette recommandation de livre très utile. You can achieve this by using Exec Task in Ant which is the counter part of Runtime.exec in java. Vous pouvez réaliser cela en utilisant Exec tâche Ant qui en est la contre partie de Runtime.exec en java. Here I am not going to explain you about How to run or create Ant Build. Ici, je ne vais pas vous expliquer comment gérer ou créer Ant Build. It does not fall under this scope of short tutorial. Il ne relevant pas du champ d'application de ce petit tutoriel.

Here we go, before getting into the tutorial we will see how to execute a windows command to get the environmental variable path Allons-y, avant de monter dans le tutoriel, nous allons voir comment exécuter une commande Windows pour obtenir la variable d'environnement 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 est l'invite de commande pour les fenêtres supérieure à gagner et 98 '/ c' est obligatoire pour exécuter la commande dans le shell de commande. To know more about Exec task kindly refer Pour en savoir plus sur Exec tâche de bien vouloir renvoyer here ici . 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. Maintenant, à venir au point, de créer un raccourci à moins que vous n'avez pas les fenêtres, des kits de ressources ou de services publics fait lire vous devez utiliser VB Script pour créer des raccourcis. The script will be making use of WScript. Le script fera usage de WScript. Shell of windows to do the job. Shell de Windows pour faire le travail. Kindly follow the code snippet given below which creates a shortcut file for a java archive file, Veuillez suivre l'extrait de code donné ci-dessous qui crée un fichier de raccourci pour un fichier d'archive Java,

Save the above code as shortcut.vbs. Enregistrer le code ci-dessus comme shortcut.vbs. Pls find the corresponding code snippet for part of the ANT Build that uses exec task Veuillez trouver l'extrait de code correspondant pour une partie de la construction ANT qui utilise exec tâche

Share or Bookmark: These icons link to social bookmarking sites where readers can share and discover new web pages. Partagez ou signet: Les icônes de lien vers Social Bookmarking sites où les lecteurs peuvent partager et découvrir de nouvelles pages Web. DiggSphinndel.icio.usFacebookMixxGoogle


See Similar Posts Voir les postes analogues

Leave a Comment Laissez un commentaire