IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Eclipse Java Discussion :

Utilisation CVS avec ANT sur OSX


Sujet :

Eclipse Java

  1. #1
    Membre du Club
    Inscrit en
    Juin 2002
    Messages
    42
    Détails du profil
    Informations forums :
    Inscription : Juin 2002
    Messages : 42
    Points : 40
    Points
    40
    Par défaut Utilisation CVS avec ANT sur OSX
    Bonjour.

    J'ai repris des projets de développement en java avec éclipse.
    Un script ANT à été mis au point afin de créer un "livrable" à partir des sources comités sur un serveur CVS.
    Le script ant se connecte, récupère les sources, les compiles ....

    Ce script fonctionne parfaitement sous windows.
    Je sais que sous windows il faut définir dans la variable d'environnement PATH, le chemin vers l'exécutable CVS pour que ANT soit capable de l'appeler.

    Mon problème est que je n'arrive pas à paramétrer la même chose sur mac.
    J'ai osx maverick et quand je lance le script ANT dans éclipse j'ai désespérément la meme erreur :
    [cvs] Caught exception: Cannot run program "cvs" (in directory ...


    Quelqu'un aurait-il une idée sur la procédure à suivre ?


    Merci d'avance

  2. #2
    Membre du Club
    Inscrit en
    Juin 2002
    Messages
    42
    Détails du profil
    Informations forums :
    Inscription : Juin 2002
    Messages : 42
    Points : 40
    Points
    40
    Par défaut Résolu
    Bonjour.
    J'ai trouvé comment faire fonctionner cvs avec ANT sur eclipse.

    J'ai installé un portage homebrew http://brew.sh
    j'ai ensuite installé cvs avec la commande
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    brew install cvs
    ==> Downloading http://ftp.gnu.org/non-gnu/cvs/source/feature/1.12.13/cvs-1.12.13.tar.bz2
    Already downloaded: /Library/Caches/Homebrew/cvs-1.12.13.tar.bz2
    ==> Downloading http://www.opensource.apple.com/source/cvs/cvs-45/patches/tag.diff?txt
    Already downloaded: /Library/Caches/Homebrew/cvs--patch-44374b8601dc7e48cf0f3a558565d28b2d0066ab.diff
    ==> Downloading http://www.opensource.apple.com/source/cvs/cvs-45/patches/remove-info.diff?txt
    Already downloaded: /Library/Caches/Homebrew/cvs--patch-7c0c9c406ae8e3d1c81eec5b4ca9e1abe6a8b660.diff
    ==> Downloading http://www.opensource.apple.com/source/cvs/cvs-45/patches/remove-libcrypto.diff?txt
    Already downloaded: /Library/Caches/Homebrew/cvs--patch-6c83063cb625cd124dcac75527dbaaa2d52d55b6.diff
    ==> Downloading http://www.opensource.apple.com/source/cvs/cvs-45/patches/endian.diff?txt
    Already downloaded: /Library/Caches/Homebrew/cvs--patch-98fa880e0e2f1edddf123cdfdcc305f01c241f9b.diff
    ==> Downloading http://www.opensource.apple.com/source/cvs/cvs-45/patches/PR5178707.diff?txt
    Already downloaded: /Library/Caches/Homebrew/cvs--patch-372385b34a346753249a7808e8d5db0a6cadd3ee.diff
    ==> Downloading http://www.opensource.apple.com/source/cvs/cvs-45/patches/zlib.diff?txt
    Already downloaded: /Library/Caches/Homebrew/cvs--patch-7781dc997c895df8cfa991ab7a04add245169ea4.diff
    ==> Downloading http://www.opensource.apple.com/source/cvs/cvs-45/patches/fixtest-recase.diff?txt
    Already downloaded: /Library/Caches/Homebrew/cvs--patch-d546783658257ad1af67cecfd6d5fef66dc63e72.diff
    ==> Downloading http://www.opensource.apple.com/source/cvs/cvs-45/patches/nopic.diff?txt
    Already downloaded: /Library/Caches/Homebrew/cvs--patch-260978aa2318cdc35121b09782f0924661d3cebb.diff
    ==> Downloading http://www.opensource.apple.com/source/cvs/cvs-45/patches/i18n.diff?txt
    Already downloaded: /Library/Caches/Homebrew/cvs--patch-ec7b44d5d138fd24ac551b880f59fb0351445b98.diff
    ==> Downloading http://www.opensource.apple.com/source/cvs/cvs-45/patches/fixtest-client-20.diff?txt
    Already downloaded: /Library/Caches/Homebrew/cvs--patch-b9277695a611750fc4db063e8929a558658ba90f.diff
    ==> Downloading http://www.opensource.apple.com/source/cvs/cvs-45/patches/initgroups.diff?txt
    Already downloaded: /Library/Caches/Homebrew/cvs--patch-2c0a11ae5af7da75e02b256c5d9f6b88c8bfd6db.diff
    ==> Downloading http://www.opensource.apple.com/source/cvs/cvs-45/patches/ea.diff?txt
    Already downloaded: /Library/Caches/Homebrew/cvs--patch-1ffcbe849e138229473e0cd796416dfbe4ad25bb.diff
    ==> Patching
    patching file doc/cvs.1
    patching file doc/Makefile.in
    patching file configure
    patching file config.h.in
    patching file src/error.c
    patching file src/zlib.c
    patching file src/sanity.sh
    patching file src/Makefile.in
    patching file src/client.c
    patching file src/client.c
    patching file src/server.c
    patching file src/ignore.c
    ==> ./configure --prefix=/usr/local/Cellar/cvs/1.12.13 --infodir=/usr/local/Cellar/cvs/1.12.13/share/info --mandir=/usr/local/Cellar/cvs/1.12.13/share/man --sys
    ==> make
    ==> make install
    🍺  /usr/local/Cellar/cvs/1.12.13: 32 files, 1,5M, built in 36 seconds
    Une fois cvs installé, si je tape cvs on voit que le système reconnais la commande correctement:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    cvs
    Usage: cvs [cvs-options] command [command-options-and-arguments]
      where cvs-options are -q, -n, etc.
        (specify --help-options for a list of options)
      where command is add, admin, etc.
        (specify --help-commands for a list of commands
         or --help-synonyms for a list of command synonyms)
      where command-options-and-arguments depend on the specific command
        (specify -H followed by a command name for command-specific help)
      Specify --help to receive this message
     
    The Concurrent Versions System (CVS) is a tool for version control.
    For CVS updates and additional information, see
        the CVS home page at http://www.nongnu.org/cvs/ or
        the CVSNT home page at http://www.cvsnt.org/
    Pourtant j'ai toujours le même problème sur eclipse.
    Ant ne trouve pas la commande cvs

    J'ai donc ajouté un lien symbolique de cvs dans le répertoire /usr/bin
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    cd /usr/bin/
    sudo ln /usr/local/Cellar/cvs/1.12.13/bin/cvs cvs
    Depuis cvs est reconnu correctement par ANT dans eclipse

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Erreur 267 sur un checkin cvs avec Script Ant
    Par stujava dans le forum ANT
    Réponses: 0
    Dernier message: 31/05/2010, 14h14
  2. compilation avec ant sur unix
    Par Lolitaaa dans le forum ANT
    Réponses: 5
    Dernier message: 07/09/2009, 15h24
  3. deploiment avec ant sur un tomcat
    Par anorach dans le forum Tomcat et TomEE
    Réponses: 1
    Dernier message: 03/02/2009, 11h38
  4. [Ant] utiliser le classpath d'Eclipse avec Ant
    Par XavierZERO dans le forum Eclipse Java
    Réponses: 3
    Dernier message: 30/03/2007, 14h00
  5. [CVS] Utilisation avec ANT
    Par pamic dans le forum ANT
    Réponses: 4
    Dernier message: 28/06/2005, 10h02

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo