Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 447783

Summary: ecjsrc build.xml returns build failed
Product: [Eclipse Project] JDT Reporter: Titus Barik <titus>
Component: CoreAssignee: Stephan Herrmann <stephan.herrmann>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: chewi, jarthana, shankhba, stephan.herrmann
Version: 4.5   
Target Milestone: 4.4 RC1   
Hardware: PC   
OS: Windows 8   
Whiteboard:

Description Titus Barik CLA 2014-10-18 15:27:09 EDT
ecjsrc-4.4.1.jar contains a build.xml file. However, attempting to build returns the following error:

D:\Downloads\ecjsrc-4.4.1>ant build
Buildfile: D:\Downloads\ecjsrc-4.4.1\build.xml

build:
   [delete] Deleting directory D:\Downloads\ecjsrc-4.4.1\bin
    [mkdir] Created dir: D:\Downloads\ecjsrc-4.4.1\bin
    [javac] D:\Downloads\ecjsrc-4.4.1\build.xml:26: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 438 source files to D:\Downloads\ecjsrc-4.4.1\bin
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

BUILD FAILED
D:\Downloads\ecjsrc-4.4.1\build.xml:31: Warning: Could not find file D:\Downloads\ecjsrc-4.4.1\scripts\binary\META-INF\MANIFEST.MF to copy.

Several oddities appear in the build.xml file:

1. ${basedir}/META-INF/MANIFEST.MF is deleted (line 30), but this file initially exists in the default src jar.
2. The copy source (line 31) does not exist, since there is no scripts directory in the jar.
3. The MANIFEST.MF is different from the MANIFEST.MF when compared against the compiled ecj-4.4.1.jar.
Comment 1 shankha banerjee CLA 2014-10-20 05:41:57 EDT
I see similar behavior for 4.5 M2.

The scripts directory is not part of the ecjsrc*.jar.

There are two lines in the build.xml file:

1) <delete file="${basedir}/META-INF/MANIFEST.MF" failonerror="false"/>

2) <copy tofile="${basedir}/META-INF/MANIFEST.MF" file="${basedir}/scripts/binary/META-INF/MANIFEST.MF"/>  

If the scripts directory does not exist where will the MANIFEST.MF file get copied from ?

Did it work in any previous build?
Comment 2 Eclipse Genie CLA 2019-10-12 11:55:37 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 3 Stephan Herrmann CLA 2019-10-20 17:29:26 EDT
I vaguely recall some fixes in this area and on trying today with the latest I-Build the ant build succeeds out-of-the-box.
Comment 4 Jay Arthanareeswaran CLA 2019-11-20 05:14:44 EST

*** This bug has been marked as a duplicate of bug 434527 ***
Comment 5 Jay Arthanareeswaran CLA 2019-11-20 05:15:21 EST
Verified for 4.14 M3 using build I20191119-1250