package init
This commit is contained in:
parent
1e77e1f4cb
commit
eb529a0fe5
30
MANIFEST.MF
Normal file
30
MANIFEST.MF
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
Manifest-Version: 1.0
|
||||||
|
Bundle-SymbolicName: org.eclipse.jdt.core.compiler.batch
|
||||||
|
Archiver-Version: Plexus Archiver
|
||||||
|
Built-By: genie.releng
|
||||||
|
Bundle-ManifestVersion: 2
|
||||||
|
Bundle-Vendor: Eclipse.org
|
||||||
|
Main-Class: org.eclipse.jdt.internal.compiler.batch.Main
|
||||||
|
Export-Package: org.eclipse.jdt.core,org.eclipse.jdt.core.compiler,org
|
||||||
|
.eclipse.jdt.internal.antadapter;x-internal:=true,org.eclipse.jdt.int
|
||||||
|
ernal.compiler;x-internal:=true,org.eclipse.jdt.internal.compiler.apt
|
||||||
|
.dispatch;x-internal:=true,org.eclipse.jdt.internal.compiler.apt.mode
|
||||||
|
l;x-internal:=true,org.eclipse.jdt.internal.compiler.apt.util;x-inter
|
||||||
|
nal:=true,org.eclipse.jdt.internal.compiler.ast;x-internal:=true,org.
|
||||||
|
eclipse.jdt.internal.compiler.batch;x-internal:=true,org.eclipse.jdt.
|
||||||
|
internal.compiler.classfmt;x-internal:=true,org.eclipse.jdt.internal.
|
||||||
|
compiler.codegen;x-internal:=true,org.eclipse.jdt.internal.compiler.e
|
||||||
|
nv;x-internal:=true,org.eclipse.jdt.internal.compiler.flow;x-internal
|
||||||
|
:=true,org.eclipse.jdt.internal.compiler.impl;x-internal:=true,org.ec
|
||||||
|
lipse.jdt.internal.compiler.lookup;x-internal:=true,org.eclipse.jdt.i
|
||||||
|
nternal.compiler.parser;x-internal:=true,org.eclipse.jdt.internal.com
|
||||||
|
piler.parser.diagnose;x-internal:=true,org.eclipse.jdt.internal.compi
|
||||||
|
ler.problem;x-internal:=true,org.eclipse.jdt.internal.compiler.util;x
|
||||||
|
-internal:=true,org.eclipse.jdt.internal.compiler.tool;x-internal:=tr
|
||||||
|
ue
|
||||||
|
Bundle-Name: Eclipse Compiler for Java(TM)
|
||||||
|
Bundle-Version: 3.13.0.v20170516-1929
|
||||||
|
Bundle-ClassPath: .
|
||||||
|
Created-By: Apache Maven
|
||||||
|
Build-Jdk: 1.8.0_121
|
||||||
|
|
||||||
64
ecj-4.9.pom
Normal file
64
ecj-4.9.pom
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
|
<!--
|
||||||
|
Originally downloaded here:
|
||||||
|
http://download.eclipse.org/eclipse/downloads/drops4/R-4.7.1-201709061700/#JDTCORE
|
||||||
|
-->
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>org.eclipse.jdt.core.compiler</groupId>
|
||||||
|
<artifactId>ecj</artifactId>
|
||||||
|
<version>4.9</version>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
<name>Eclipse ECJ</name>
|
||||||
|
<description>Eclipse JDT Core Batch Compiler</description>
|
||||||
|
<url>http://www.eclipse.org/jdt/</url>
|
||||||
|
<properties>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
|
<maven.compiler.target>1.8</maven.compiler.target>
|
||||||
|
</properties>
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>Eclipse Public License v1.0</name>
|
||||||
|
<url>http://www.eclipse.org/org/documents/epl-v10.php</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
<scm>
|
||||||
|
<url>http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jdt.core/</url>
|
||||||
|
<connection>:pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse</connection>
|
||||||
|
</scm>
|
||||||
|
<developers>
|
||||||
|
<!-- I didn't develop ECJ, but the Central Sync Requirements mandate a developer in the POM:
|
||||||
|
https://docs.sonatype.org/display/Repository/Central+Sync+Requirements
|
||||||
|
-->
|
||||||
|
<developer>
|
||||||
|
<name>Ralph Schaer</name>
|
||||||
|
<email>ralphschaer@gmail.com</email>
|
||||||
|
</developer>
|
||||||
|
</developers>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.ant</groupId>
|
||||||
|
<artifactId>ant</artifactId>
|
||||||
|
<version>1.9.4</version>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
<version>2.10.3</version>
|
||||||
|
<configuration>
|
||||||
|
<additionalparam>-Xdoclint:none</additionalparam>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
</project>
|
||||||
4
ecj.sh.in
Normal file
4
ecj.sh.in
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
CLASSPATH=$(build-classpath ecj):${CLASSPATH=.} \
|
||||||
|
java org.eclipse.jdt.internal.compiler.batch.Main "$@"
|
||||||
68
ecj.spec
Normal file
68
ecj.spec
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
Epoch: 1
|
||||||
|
|
||||||
|
Name: ecj
|
||||||
|
Version: 4.9
|
||||||
|
Release: 3
|
||||||
|
Summary: the Eclipse Compiler for Java
|
||||||
|
License: EPL-2.0
|
||||||
|
URL: http://www.eclipse.org
|
||||||
|
|
||||||
|
Source0: http://download.eclipse.org/eclipse/downloads/drops4/R-4.9-201809060745/ecjsrc-4.9.jar
|
||||||
|
Source1: ecj.sh.in
|
||||||
|
Source3: https://repo1.maven.org/maven2/org/eclipse/jdt/core/compiler/ecj/%{version}/ecj-%{version}.pom
|
||||||
|
Source4: MANIFEST.MF
|
||||||
|
Source5: java10api.jar
|
||||||
|
|
||||||
|
Patch0: javaAPI.patch
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: ant javapackages-local
|
||||||
|
|
||||||
|
%description
|
||||||
|
ECJ is the the Eclipse Compiler for Java. It is also known as the JDT Core batch compiler.
|
||||||
|
|
||||||
|
%package_help
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -c -n %{name}-%{version} -p1
|
||||||
|
|
||||||
|
sed -i -e 's|debuglevel=\"lines,source\"|debug=\"yes\"|g' build.xml
|
||||||
|
sed -i -e "s/Xlint:none/Xlint:none -encoding cp1252/g" build.xml
|
||||||
|
rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java
|
||||||
|
cp %{SOURCE3} pom.xml
|
||||||
|
mkdir -p scripts/binary/META-INF/
|
||||||
|
cp %{SOURCE4} scripts/binary/META-INF/MANIFEST.MF
|
||||||
|
|
||||||
|
%pom_remove_dep org.apache.ant:ant
|
||||||
|
|
||||||
|
%mvn_file :ecj ecj jdtcore
|
||||||
|
%mvn_alias org.eclipse.jdt.core.compiler:ecj org.eclipse.jdt:core org.eclipse.jdt:ecj \
|
||||||
|
org.eclipse.tycho:org.eclipse.jdt.core org.eclipse.tycho:org.eclipse.jdt.compiler.apt
|
||||||
|
%mvn_artifact "org.eclipse:java10api:jar:10" %{SOURCE5}
|
||||||
|
%mvn_alias "org.eclipse:java10api:jar:10" "org.eclipse:java9api:jar:9"
|
||||||
|
|
||||||
|
%build
|
||||||
|
ant -Djavaapi=%{SOURCE5}
|
||||||
|
|
||||||
|
%install
|
||||||
|
%mvn_artifact pom.xml ecj.jar
|
||||||
|
%mvn_install
|
||||||
|
|
||||||
|
sed -i 's/[0-9a-f]\{8\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{12\}/f2f42549-cfab-4d71-be48-5e9f9a41e5f5/g' $(find %{_buildrootdir} -name ecj.xml)
|
||||||
|
|
||||||
|
install -p -D -m0755 %{SOURCE1} %{buildroot}%{_bindir}/ecj
|
||||||
|
mkdir -p %{buildroot}%{_mandir}/man1
|
||||||
|
install -m 644 -p ecj.1 %{buildroot}%{_mandir}/man1/ecj.1
|
||||||
|
|
||||||
|
%files -f .mfiles
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc about.html
|
||||||
|
%{_bindir}/ecj
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_mandir}/man1/ecj*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Dec 4 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:4.9-3
|
||||||
|
- Package init
|
||||||
BIN
ecjsrc-4.9.jar
Normal file
BIN
ecjsrc-4.9.jar
Normal file
Binary file not shown.
BIN
java10api.jar
Normal file
BIN
java10api.jar
Normal file
Binary file not shown.
26
javaAPI.patch
Normal file
26
javaAPI.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
--- a/build.xml.orig 2018-03-20 15:15:57.063810672 +0000
|
||||||
|
+++ b/build.xml 2018-03-20 15:16:26.018700633 +0000
|
||||||
|
@@ -15,16 +15,20 @@
|
||||||
|
<property name="output" value="bin" />
|
||||||
|
<property name="jar_file" value="ecj.jar" />
|
||||||
|
|
||||||
|
+ <path id="build.path">
|
||||||
|
+ <pathelement path="${javaapi}"/>
|
||||||
|
+ <pathelement path="/usr/lib/jvm/java-1.8.0/jre/lib/rt.jar"/>
|
||||||
|
+ </path>
|
||||||
|
<target name="build">
|
||||||
|
<delete file="${basedir}/${jar_file}" failonerror="no" />
|
||||||
|
<delete dir="${output}" failonerror="no" />
|
||||||
|
<mkdir dir="${output}" />
|
||||||
|
|
||||||
|
- <javac srcdir="${basedir}" destdir="${output}"
|
||||||
|
- debuglevel="lines,source"
|
||||||
|
+ <javac srcdir="${basedir}" destdir="${output}" bootclasspathref="build.path"
|
||||||
|
+ debug="yes"
|
||||||
|
source="1.8"
|
||||||
|
target="1.8">
|
||||||
|
- <compilerarg line="-Xlint:none"/>
|
||||||
|
+ <compilerarg line="-Xlint:none -encoding cp1252 -encoding cp1252"/>
|
||||||
|
</javac>
|
||||||
|
|
||||||
|
<delete file="${basedir}/META-INF/MANIFEST.MF" failonerror="false"/>
|
||||||
Loading…
x
Reference in New Issue
Block a user