Bonjour à tous,
Dans le cadre du Build d'un logiciel libre, un bug est apparu depuis la dernière version du logiciel. Après avoir essayé plusieurs méthodes pour le résoudre, je n'ai pas réussi à le résoudre.
Voici ce qui en ressort :
Le fichier build.xml est le suivant ;
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 /home/marc/Program/Logiciel/Code/logiciel/build.xml:27: The following error occurred while executing this line: /home/marc/Program/Logiciel/Code/logiciel/logiciel_fr/build.xml:73: Problem: failed to create task or type one-jar Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Une piste?
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94 <?xml version="1.0" encoding="UTF-8" standalone="no"?> <project default="jar" name="logiciel-fr"> <!--this file was created by Eclipse Runnable JAR Export Wizard--> <!--ANT 1.7 is required --> <import file="../ant/global.xml"/> <import file="../ant/one-jar-ant-task.xml"/> <target name="about"> <echo message="try targets jar, etc." /> </target> <target name="init" description="Initializes properties that are used by other targets."> <property name="project" value="${ant.project.name}" /> <property name="prettyName" value="Logiciel for French" /> <property name="sharedLib" value="../lib"/> <property name="dist" value="../dist"/> <property name="src" value="src"/> <property name="build" value="build"/> <property name="classes" location="${build}/classes" /> <property name="doc" location="${build}/doc" /> <path id="classpath"> <fileset dir="${sharedLib}"> <include name="**/*.jar" /> </fileset> <fileset dir="${dist}"> <include name="logiciel-utils-${logiciel.version}.jar" /> <include name="logiciel-machineLearning-${logiciel.version}.jar" /> <include name="logiciel-core-${logiciel.version}.jar" /> <include name="logiciel-lefff-${logiciel.version}.jar" /> </fileset> <!-- build output path --> <pathelement location="${classes}"/> </path> <mkdir dir="${build}" /> <mkdir dir="${classes}" /> <mkdir dir="${doc}" /> <mkdir dir="${dist}" /> </target> <target name="clean" depends="init" description="removes all directories related to this build"> <delete dir="${build}"/> </target> <target name="compile" depends="init"> <javac srcdir="${src}" destdir="${classes}" deprecation="on" debug="on" encoding="utf-8"> <classpath><path refid="classpath" /></classpath> </javac> <copy todir="${classes}"> <fileset dir="${src}"> <exclude name="**/*.java"/> </fileset> </copy> </target> <target name="javadoc" depends="compile"> <javadoc packagenames="com.societe.*" sourcepath="${src}" defaultexcludes="yes" destdir="${doc}" author="true" version="true" encoding="UTF-8" use="true" windowtitle="${prettyName} API"> <doctitle><![CDATA[<h1>Logiciel for French API</h1>]]></doctitle> <bottom><![CDATA[<i>Copyright © 2012 Societe Informatique SARL. All Rights Reserved.</i>]]></bottom> <tag name="todo" scope="all" description="To do:"/> </javadoc> </target> <target name="jar" depends="compile"> <!-- Construct the One-JAR file --> <one-jar destfile="${dist}/${project}-${logiciel.version}.jar"> <manifest> <attribute name="One-Jar-Main-Class" value="com.societe.logiciel.fr.LogicielFrench" /> </manifest> <main> <!-- Construct main.jar from classes and source code --> <fileset dir="${classes}"/> </main> <lib> <fileset dir="${sharedLib}"> <include name="**/*.jar" /> </fileset> <fileset dir="${dist}"> <include name="logiciel-utils-${logiciel.version}.jar" /> <include name="logiciel-machineLearning-${logiciel.version}.jar" /> <include name="logiciel-core-${logiciel.version}.jar" /> <include name="logiciel-lefff-${logiciel.version}.jar" /> </fileset> </lib> </one-jar> </target> </project>
D'avance merci
TerrorOnCity
Partager