mirror of https://github.com/rusefi/rusefi-1.git
issue 3014 part 4 bin2header migration (#3163)
* feat: completed build.gradle for bin2header * fix: deleted obsolete build.xml for bin2header
This commit is contained in:
parent
7363ac5c09
commit
2043524e93
|
@ -21,3 +21,5 @@ include ':version2header'
|
|||
project(':version2header').projectDir = new File('../java_tools/version2header')
|
||||
include ':enum_to_string'
|
||||
project(':enum_to_string').projectDir = new File('../java_tools/enum_to_string')
|
||||
include ':bin2header'
|
||||
project(':bin2header').projectDir = new File('../java_tools/bin2header')
|
|
@ -0,0 +1,23 @@
|
|||
plugins {
|
||||
id 'java-library'
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
defaultTasks 'jar'
|
||||
|
||||
dependencies {
|
||||
implementation 'junit:junit:4.8.2'
|
||||
implementation fileTree(dir: '../../java_console/lib', include: 'annotations.jar')
|
||||
}
|
||||
|
||||
jar {
|
||||
destinationDirectory = file( '$rootDir/../..' )
|
||||
manifest {
|
||||
attributes(
|
||||
'Main-Class': 'rusefi.Bin2Header'
|
||||
)
|
||||
}
|
||||
}
|
|
@ -1,24 +0,0 @@
|
|||
<project default="jar">
|
||||
|
||||
<target name="clean">
|
||||
<delete dir="build"/>
|
||||
</target>
|
||||
|
||||
<target name="compile">
|
||||
<mkdir dir="build/classes"/>
|
||||
<javac destdir="build/classes" classpath="lib/junit.jar:lib/annotations.jar">
|
||||
<src path="src/main/java"/>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="jar" depends="compile">
|
||||
<mkdir dir="build/jar"/>
|
||||
<jar destfile="../bin2header.jar" basedir="build/classes">
|
||||
<manifest>
|
||||
<attribute name="Main-Class" value="rusefi.Bin2Header"/>
|
||||
</manifest>
|
||||
<zipfileset dir="build/classes" includes="**/*.class"/>
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
</project>
|
Loading…
Reference in New Issue