Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312200 - non delimited command makes it hard (impossible?) to script with executable
Summary: non delimited command makes it hard (impossible?) to script with executable
Status: RESOLVED INVALID
Alias: None
Product: CBI
Classification: Technology
Component: CBI p2 Repository Aggregator (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-09 22:19 EDT by David Williams CLA
Modified: 2016-09-16 15:59 EDT (History)
1 user (show)

See Also:


Attachments
full "log" of attempthing to run this particular ant task (24.03 KB, text/html)
2010-05-09 22:20 EDT, David Williams CLA
no flags Details
another example (17.73 KB, text/html)
2010-05-10 02:16 EDT, David Williams CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Williams CLA 2010-05-09 22:19:58 EDT
I may be missing some key bit of knowledge, or perhaps, 
at some level, this is an eclipse executable limitation (if not bug) but since I've not really seen non-delimited commands used before, I wonder if that's too non-standard? Here's what I mean ... I've tried creating and ant script, to run the aggregator, launching from "eclipse" executable. Specifically 

<exec executable="${eclipseExecutable36}" dir="${basedir}" failonerror="true">
  <arg value="aggregate" />
  <arg value="-debug" />
  <arg value="-nosplash" />
  <arg line="-data ${eclipseWorkspace}" />
  <arg value="--launcher.suppressErrors"/>
  <arg line="-vm ${JAVA_5_HOME}/jre/bin"/>
  <arg line="-application org.eclipse.b3.cli.headless" />
  <arg line="--buildId ${buildId}"/>
  <arg line="${AGGREGATOR_APP_ARGS}" />
  <arg line="${BUILDER_VM_ARGS}" />
</exec>

No matter what I do, the 'aggregate' command simply gets combined with whatever comes before it. I'll attach log from above example, that shows it "attached" to the --startup jar line from eclipse executable. If I move it around, it just gets "attached" at the end of something else, and never recognized by the aggregator app as a command. 

Is there something I'm missing? Some important reason it was done this way? 
An obvious bug or change in behavior in eclipse executable launcher?
Comment 1 David Williams CLA 2010-05-09 22:20:57 EDT
Created attachment 167647 [details]
full "log" of attempthing to run this particular ant task
Comment 2 Thomas Hallgren CLA 2010-05-10 00:49:15 EDT
The ant executable task will just pass the arguments in the same order that they are given to it. The 'line' arguments will be parsed into pieces and the 'value' arguments are passed verbatim.

The re-ordering that takes place comes from the launcher and from the looks of it, it is correct. The 'aggregate' command is indeed called. So I'm not sure I understand what you mean with "non-delimited commands" or what the issue is. The error you get is due to the missing --mirrorReferences option.
Comment 3 David Williams CLA 2010-05-10 02:16:28 EDT
Created attachment 167659 [details]
another example

I was obviously confusing my self ... but, just so you know, here's another example where it doesn't "find" 'aggregator' after following a line argument that ended with the logURL value. So, still not sure why it works in some locations, and not others ... but ...
Comment 4 David Williams CLA 2010-05-10 02:17:47 EDT
but, I have seen it work in some locations (after removing --mirrorReferences) ... so I guess its working as designed.
Comment 5 David Williams CLA 2016-09-16 15:59:46 EDT
[Bookkeeping change only. Moving bugs to the new "home" of aggregator, CBI.
No change to assignee for resolved and verified bugs.]