Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » EPF » Publishing invoked from command line
Publishing invoked from command line [message #40556] Sat, 15 September 2007 07:38 Go to next message
Roman Smirak is currently offline Roman SmirakFriend
Messages: 136
Registered: July 2009
Senior Member
Hi,

I'm about to automate latest content publishing to make it available
ASAP to relevant (users, experts, community) people. Currently I publish
content via MC, of course; however it is manual, it requires few steps,
usually I forget something, or even I don't have time to wait.

Can I invoke the publishing service e.g. from ant task?

Do you publish OpenUP and other processes manually or what is your
approach?

Thanks,

Roman
Re: Publishing invoked from command line [message #40649 is a reply to message #40556] Mon, 17 September 2007 15:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: storaskar.xx.xxx.xxx

Sorry, we don't have that feature yet.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=148030

You can vote..
--
Shilpa
Re: Publishing invoked from command line [message #40745 is a reply to message #40649] Tue, 18 September 2007 06:53 Go to previous messageGo to next message
Roman Smirak is currently offline Roman SmirakFriend
Messages: 136
Registered: July 2009
Senior Member
Hi,

I voted in favour. I check out the patch, however, I see CVS like
format - can I get the patch as zip or can I get it from EPF CVS?

Regards,

Roman

"Shilpa Toraskar" <storaskar@xx.xxx.xxx> wrote in message
news:3e042edb9555ceb03224f65eb37c389d$1@www.eclipse.org...
> Sorry, we don't have that feature yet.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=148030
>
> You can vote..
> --
> Shilpa
>
Re: Publishing invoked from command line [message #40773 is a reply to message #40745] Tue, 18 September 2007 14:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: storaskar.xx.xxx.xxx

Thanks for voting.
You could save patch as text file or in clipboard. If you have EPF source
code in eclipse shell, then you could just right-click on package explorer
on any of the plugin, go to Team-> Apply patch and apply this text file or
from the clipboard. All the changes in the patch should get applied to
source code in your eclipse shell. If you are going to play with it, I
would suggest keeping another workspace.

Being said that, please NOTE that patch was created more than a year back
based on the source code at that time. When you try to apply that patch
now on current source code, it will fail miserably. I don't know how good
that patch was even at a year back. You could go line by line and try to
review the code in the patch to see whether you can make it work. Looks
like there is a new plugin "org.eclipse.epf.publishing.cmdline" in that
patch. Going thru that would be a good starting point. Good luck !

Shilpa
Re: Publishing invoked from command line [message #40804 is a reply to message #40556] Tue, 18 September 2007 21:09 Go to previous messageGo to next message
Ricardo Balduino is currently offline Ricardo BalduinoFriend
Messages: 191
Registered: July 2009
Senior Member
Roman,

We publish OpenUP and other processes manually.
I voted for that bug too :-) That would be a nice feature for content
authors.

Ricardo Balduino.

"Roman Smirak" <roman.smirak@tietoenator.com> wrote in message
news:fcg26c$nk6$1@build.eclipse.org...
> Hi,
>
> I'm about to automate latest content publishing to make it available
> ASAP to relevant (users, experts, community) people. Currently I publish
> content via MC, of course; however it is manual, it requires few steps,
> usually I forget something, or even I don't have time to wait.
>
> Can I invoke the publishing service e.g. from ant task?
>
> Do you publish OpenUP and other processes manually or what is your
> approach?
>
> Thanks,
>
> Roman
>
Re: Publishing invoked from command line [message #40865 is a reply to message #40773] Thu, 20 September 2007 08:14 Go to previous messageGo to next message
Roman Smirak is currently offline Roman SmirakFriend
Messages: 136
Registered: July 2009
Senior Member
Hi,

I've checked out the HEAD sources (it takes time to get info about
repository path - it would be great to get one page referring all the wiki
or other pages providing info how to check out the sources); however I have
got several errors due to missing bundles (I use Europe release + related
EMF, GEF, ... bundles) - for instance emf.transaction and so I'm downloading
latest nightly release to notice the dependencies. Is there any other way?
Did I miss something?

Regards,

Roman

"Shilpa Toraskar" <storaskar@xx.xxx.xxx> wrote in message
news:30cb697be0ab1795520c686f24b13c8f$1@www.eclipse.org...
> Thanks for voting.
> You could save patch as text file or in clipboard. If you have EPF source
> code in eclipse shell, then you could just right-click on package explorer
> on any of the plugin, go to Team-> Apply patch and apply this text file or
> from the clipboard. All the changes in the patch should get applied to
> source code in your eclipse shell. If you are going to play with it, I
> would suggest keeping another workspace.
>
> Being said that, please NOTE that patch was created more than a year back
> based on the source code at that time. When you try to apply that patch
> now on current source code, it will fail miserably. I don't know how good
> that patch was even at a year back. You could go line by line and try to
> review the code in the patch to see whether you can make it work. Looks
> like there is a new plugin "org.eclipse.epf.publishing.cmdline" in that
> patch. Going thru that would be a good starting point. Good luck !
>
> Shilpa
>
Re: Publishing invoked from command line [message #40896 is a reply to message #40865] Thu, 20 September 2007 15:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: storaskar.xx.xxx.xxx

Not sure whether you saw this
http://www.eclipse.org/epf/composer_dev_guide/

You need all these dependencies
http://www.eclipse.org/epf/composer_dev_guide/dev_env.php

I am not sure what Europa consists of. Pls. make sure all those
dependencies listed above are included in Europa

Shilpa
Re: Publishing invoked from command line [message #40927 is a reply to message #40896] Thu, 20 September 2007 18:54 Go to previous messageGo to next message
Roman Smirak is currently offline Roman SmirakFriend
Messages: 136
Registered: July 2009
Senior Member
Thanks, i was missing that.. I'm sorry. Now it looks OK.

It seems that the patch is obsolote, however, I will try to make it running.

Thanks,

Roman

"Shilpa Toraskar" <storaskar@xx.xxx.xxx> wrote in message
news:5a308dc34033307c79db9d770be560a1$1@www.eclipse.org...
> Not sure whether you saw this
> http://www.eclipse.org/epf/composer_dev_guide/
>
> You need all these dependencies
> http://www.eclipse.org/epf/composer_dev_guide/dev_env.php
>
> I am not sure what Europa consists of. Pls. make sure all those
> dependencies listed above are included in Europa
>
> Shilpa
>
Re: Publishing invoked from command line [message #42590 is a reply to message #40896] Thu, 04 October 2007 13:44 Go to previous messageGo to next message
Roman Smirak is currently offline Roman SmirakFriend
Messages: 136
Registered: July 2009
Senior Member
Hi,

I have updated it to make it working with EPF 1.2 (note that I don't
handle all the attributes via command line) - anyone interrested? Shall I
put it somewhere?

Roman

"Shilpa Toraskar" <storaskar@xx.xxx.xxx> wrote in message
news:5a308dc34033307c79db9d770be560a1$1@www.eclipse.org...
> Not sure whether you saw this
> http://www.eclipse.org/epf/composer_dev_guide/
>
> You need all these dependencies
> http://www.eclipse.org/epf/composer_dev_guide/dev_env.php
>
> I am not sure what Europa consists of. Pls. make sure all those
> dependencies listed above are included in Europa
>
> Shilpa
>
Re: Publishing invoked from command line [message #42649 is a reply to message #42590] Thu, 04 October 2007 17:52 Go to previous messageGo to next message
Roman Smirak is currently offline Roman SmirakFriend
Messages: 136
Registered: July 2009
Senior Member
Just FYI - I found some issue there, the original patch contains code like
this:

Thread thread = new Thread(new Runnable() {

public void run() {

try {

object[0] = Publish.this.run(args, shell, publishDataModel);

} catch (Exception e) {

object[0] = e;

}

}

});

thread.start();


while(!done) {

if (!display.readAndDispatch ()) display.sleep ();

}


//thread.join(); // BUG: gets stuck at this point

I have to comment the last line thread.join(); since the thread doesn't
terminate - it waits inside SWT (there is probably no one to pick up stored
runnable).

Thread [Thread-1] (Suspended)
owns: LibraryService (id=526)
waiting for: RunnableLock (id=527)
Object.wait(long) line: not available [native method]
RunnableLock(Object).wait() line: not available
Synchronizer.syncExec(Runnable) line: 169
Display.syncExec(Runnable) line: 4097
SafeUpdateController.syncExec(Runnable) line: 41
LibraryService.notifyListeners(MethodLibrary, int) line: 655
LibraryService.closeMethodLibrary(MethodLibrary) line: 369
LibraryService.closeCurrentMethodLibrary() line: 393
Publish.run(Object, Shell, PublishOptions) line: 130
Publish$1.run() line: 71
Thread.run() line: not available


Maybe you will see there something dangerous for normal execution as well.

Roman

"Roman Smirak" <roman.smirak@tietoenator.com> wrote in message
news:fe2qoa$pbl$1@build.eclipse.org...
> Hi,
>
> I have updated it to make it working with EPF 1.2 (note that I don't
> handle all the attributes via command line) - anyone interrested? Shall I
> put it somewhere?
>
> Roman
>
> "Shilpa Toraskar" <storaskar@xx.xxx.xxx> wrote in message
> news:5a308dc34033307c79db9d770be560a1$1@www.eclipse.org...
>> Not sure whether you saw this
>> http://www.eclipse.org/epf/composer_dev_guide/
>>
>> You need all these dependencies
>> http://www.eclipse.org/epf/composer_dev_guide/dev_env.php
>>
>> I am not sure what Europa consists of. Pls. make sure all those
>> dependencies listed above are included in Europa
>>
>> Shilpa
>>
>
>
Re: Publishing invoked from command line [message #42681 is a reply to message #42649] Thu, 04 October 2007 19:41 Go to previous messageGo to next message
Roman Smirak is currently offline Roman SmirakFriend
Messages: 136
Registered: July 2009
Senior Member
I have found better solution:
} finally {

done = true;

shell.getDisplay().wake();

lp.closeCurrentMethodLibrary();

}

Changed to:

} finally {

lp.closeCurrentMethodLibrary();

done = true;

shell.getDisplay().wake();

}


so that the main thread can still handle:
while(!done) {

if (!display.readAndDispatch ()) display.sleep ();

}


I expect this is command-line specific issue.

Roman

"Roman Smirak" <roman.smirak@tietoenator.com> wrote in message
news:fe3999$oen$1@build.eclipse.org...
> Just FYI - I found some issue there, the original patch contains code like
> this:
>
> Thread thread = new Thread(new Runnable() {
>
> public void run() {
>
> try {
>
> object[0] = Publish.this.run(args, shell, publishDataModel);
>
> } catch (Exception e) {
>
> object[0] = e;
>
> }
>
> }
>
> });
>
> thread.start();
>
>
> while(!done) {
>
> if (!display.readAndDispatch ()) display.sleep ();
>
> }
>
>
> //thread.join(); // BUG: gets stuck at this point
>
> I have to comment the last line thread.join(); since the thread doesn't
> terminate - it waits inside SWT (there is probably no one to pick up
> stored runnable).
>
> Thread [Thread-1] (Suspended)
> owns: LibraryService (id=526)
> waiting for: RunnableLock (id=527)
> Object.wait(long) line: not available [native method]
> RunnableLock(Object).wait() line: not available
> Synchronizer.syncExec(Runnable) line: 169
> Display.syncExec(Runnable) line: 4097
> SafeUpdateController.syncExec(Runnable) line: 41
> LibraryService.notifyListeners(MethodLibrary, int) line: 655
> LibraryService.closeMethodLibrary(MethodLibrary) line: 369
> LibraryService.closeCurrentMethodLibrary() line: 393
> Publish.run(Object, Shell, PublishOptions) line: 130
> Publish$1.run() line: 71
> Thread.run() line: not available
>
>
> Maybe you will see there something dangerous for normal execution as well.
>
> Roman
>
> "Roman Smirak" <roman.smirak@tietoenator.com> wrote in message
> news:fe2qoa$pbl$1@build.eclipse.org...
>> Hi,
>>
>> I have updated it to make it working with EPF 1.2 (note that I don't
>> handle all the attributes via command line) - anyone interrested? Shall I
>> put it somewhere?
>>
>> Roman
>>
>> "Shilpa Toraskar" <storaskar@xx.xxx.xxx> wrote in message
>> news:5a308dc34033307c79db9d770be560a1$1@www.eclipse.org...
>>> Not sure whether you saw this
>>> http://www.eclipse.org/epf/composer_dev_guide/
>>>
>>> You need all these dependencies
>>> http://www.eclipse.org/epf/composer_dev_guide/dev_env.php
>>>
>>> I am not sure what Europa consists of. Pls. make sure all those
>>> dependencies listed above are included in Europa
>>>
>>> Shilpa
>>>
>>
>>
>
>
Re: Publishing invoked from command line [message #43618 is a reply to message #42681] Wed, 10 October 2007 18:37 Go to previous messageGo to next message
Shilpa Toraskar is currently offline Shilpa ToraskarFriend
Messages: 102
Registered: July 2009
Senior Member
You could attach new patch to the bug. I am sure there are others who are
looking for similar solution.

Thanks

Shilpa Toraskar
Re: Publishing invoked from command line [message #43839 is a reply to message #43618] Fri, 12 October 2007 13:01 Go to previous messageGo to next message
Roman Smirak is currently offline Roman SmirakFriend
Messages: 136
Registered: July 2009
Senior Member
Hi,

I haven't made any changes in existing code - just cmdline plugin is
needed. Shall I create a patch anyway? I would prefer simply zip it and
attach as it is.

Roman

"Shilpa Toraskar" <storaskar@yahoo.com> wrote in message
news:c7af4a0b7d90d82161a942cea7dcf641$1@www.eclipse.org...
> You could attach new patch to the bug. I am sure there are others who are
> looking for similar solution.
>
> Thanks
>
> Shilpa Toraskar
>
Re: Publishing invoked from command line [message #43870 is a reply to message #43839] Fri, 12 October 2007 15:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: storaskar.xx.xxx.xxx

Sure.. anything works..

Thanks for your contribution

Shilpa
Re: Publishing invoked from command line [message #44014 is a reply to message #43870] Sat, 13 October 2007 13:20 Go to previous message
Roman Smirak is currently offline Roman SmirakFriend
Messages: 136
Registered: July 2009
Senior Member
Hi,

done: https://bugs.eclipse.org/bugs/attachment.cgi?id=80303

Roman

"Shilpa Toraskar" <storaskar@xx.xxx.xxx> wrote in message
news:6b78bc1d045037b49404d6ca93236ca6$1@www.eclipse.org...
> Sure.. anything works..
>
> Thanks for your contribution
>
> Shilpa
>
Re: Publishing invoked from command line [message #583259 is a reply to message #40556] Mon, 17 September 2007 15:29 Go to previous message
Shilpa Toraskar is currently offline Shilpa ToraskarFriend
Messages: 102
Registered: July 2009
Senior Member
Sorry, we don't have that feature yet.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=148030

You can vote..
--
Shilpa
Re: Publishing invoked from command line [message #583311 is a reply to message #40649] Tue, 18 September 2007 06:53 Go to previous message
Roman Smirak is currently offline Roman SmirakFriend
Messages: 136
Registered: July 2009
Senior Member
Hi,

I voted in favour. I check out the patch, however, I see CVS like
format - can I get the patch as zip or can I get it from EPF CVS?

Regards,

Roman

"Shilpa Toraskar" <storaskar@xx.xxx.xxx> wrote in message
news:3e042edb9555ceb03224f65eb37c389d$1@www.eclipse.org...
> Sorry, we don't have that feature yet.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=148030
>
> You can vote..
> --
> Shilpa
>
Re: Publishing invoked from command line [message #583324 is a reply to message #40745] Tue, 18 September 2007 14:51 Go to previous message
Shilpa Toraskar is currently offline Shilpa ToraskarFriend
Messages: 102
Registered: July 2009
Senior Member
Thanks for voting.
You could save patch as text file or in clipboard. If you have EPF source
code in eclipse shell, then you could just right-click on package explorer
on any of the plugin, go to Team-> Apply patch and apply this text file or
from the clipboard. All the changes in the patch should get applied to
source code in your eclipse shell. If you are going to play with it, I
would suggest keeping another workspace.

Being said that, please NOTE that patch was created more than a year back
based on the source code at that time. When you try to apply that patch
now on current source code, it will fail miserably. I don't know how good
that patch was even at a year back. You could go line by line and try to
review the code in the patch to see whether you can make it work. Looks
like there is a new plugin "org.eclipse.epf.publishing.cmdline" in that
patch. Going thru that would be a good starting point. Good luck !

Shilpa
Re: Publishing invoked from command line [message #583334 is a reply to message #40556] Tue, 18 September 2007 21:09 Go to previous message
Ricardo Balduino is currently offline Ricardo BalduinoFriend
Messages: 191
Registered: July 2009
Senior Member
Roman,

We publish OpenUP and other processes manually.
I voted for that bug too :-) That would be a nice feature for content
authors.

Ricardo Balduino.

"Roman Smirak" <roman.smirak@tietoenator.com> wrote in message
news:fcg26c$nk6$1@build.eclipse.org...
> Hi,
>
> I'm about to automate latest content publishing to make it available
> ASAP to relevant (users, experts, community) people. Currently I publish
> content via MC, of course; however it is manual, it requires few steps,
> usually I forget something, or even I don't have time to wait.
>
> Can I invoke the publishing service e.g. from ant task?
>
> Do you publish OpenUP and other processes manually or what is your
> approach?
>
> Thanks,
>
> Roman
>
Re: Publishing invoked from command line [message #583359 is a reply to message #40773] Thu, 20 September 2007 08:14 Go to previous message
Roman Smirak is currently offline Roman SmirakFriend
Messages: 136
Registered: July 2009
Senior Member
Hi,

I've checked out the HEAD sources (it takes time to get info about
repository path - it would be great to get one page referring all the wiki
or other pages providing info how to check out the sources); however I have
got several errors due to missing bundles (I use Europe release + related
EMF, GEF, ... bundles) - for instance emf.transaction and so I'm downloading
latest nightly release to notice the dependencies. Is there any other way?
Did I miss something?

Regards,

Roman

"Shilpa Toraskar" <storaskar@xx.xxx.xxx> wrote in message
news:30cb697be0ab1795520c686f24b13c8f$1@www.eclipse.org...
> Thanks for voting.
> You could save patch as text file or in clipboard. If you have EPF source
> code in eclipse shell, then you could just right-click on package explorer
> on any of the plugin, go to Team-> Apply patch and apply this text file or
> from the clipboard. All the changes in the patch should get applied to
> source code in your eclipse shell. If you are going to play with it, I
> would suggest keeping another workspace.
>
> Being said that, please NOTE that patch was created more than a year back
> based on the source code at that time. When you try to apply that patch
> now on current source code, it will fail miserably. I don't know how good
> that patch was even at a year back. You could go line by line and try to
> review the code in the patch to see whether you can make it work. Looks
> like there is a new plugin "org.eclipse.epf.publishing.cmdline" in that
> patch. Going thru that would be a good starting point. Good luck !
>
> Shilpa
>
Re: Publishing invoked from command line [message #583379 is a reply to message #40865] Thu, 20 September 2007 15:46 Go to previous message
Shilpa Toraskar is currently offline Shilpa ToraskarFriend
Messages: 102
Registered: July 2009
Senior Member
Not sure whether you saw this
http://www.eclipse.org/epf/composer_dev_guide/

You need all these dependencies
http://www.eclipse.org/epf/composer_dev_guide/dev_env.php

I am not sure what Europa consists of. Pls. make sure all those
dependencies listed above are included in Europa

Shilpa
Re: Publishing invoked from command line [message #583386 is a reply to message #40896] Thu, 20 September 2007 18:54 Go to previous message
Roman Smirak is currently offline Roman SmirakFriend
Messages: 136
Registered: July 2009
Senior Member
Thanks, i was missing that.. I'm sorry. Now it looks OK.

It seems that the patch is obsolote, however, I will try to make it running.

Thanks,

Roman

"Shilpa Toraskar" <storaskar@xx.xxx.xxx> wrote in message
news:5a308dc34033307c79db9d770be560a1$1@www.eclipse.org...
> Not sure whether you saw this
> http://www.eclipse.org/epf/composer_dev_guide/
>
> You need all these dependencies
> http://www.eclipse.org/epf/composer_dev_guide/dev_env.php
>
> I am not sure what Europa consists of. Pls. make sure all those
> dependencies listed above are included in Europa
>
> Shilpa
>
Re: Publishing invoked from command line [message #584200 is a reply to message #40896] Thu, 04 October 2007 13:44 Go to previous message
Roman Smirak is currently offline Roman SmirakFriend
Messages: 136
Registered: July 2009
Senior Member
Hi,

I have updated it to make it working with EPF 1.2 (note that I don't
handle all the attributes via command line) - anyone interrested? Shall I
put it somewhere?

Roman

"Shilpa Toraskar" <storaskar@xx.xxx.xxx> wrote in message
news:5a308dc34033307c79db9d770be560a1$1@www.eclipse.org...
> Not sure whether you saw this
> http://www.eclipse.org/epf/composer_dev_guide/
>
> You need all these dependencies
> http://www.eclipse.org/epf/composer_dev_guide/dev_env.php
>
> I am not sure what Europa consists of. Pls. make sure all those
> dependencies listed above are included in Europa
>
> Shilpa
>
Re: Publishing invoked from command line [message #584227 is a reply to message #42590] Thu, 04 October 2007 17:52 Go to previous message
Roman Smirak is currently offline Roman SmirakFriend
Messages: 136
Registered: July 2009
Senior Member
Just FYI - I found some issue there, the original patch contains code like
this:

Thread thread = new Thread(new Runnable() {

public void run() {

try {

object[0] = Publish.this.run(args, shell, publishDataModel);

} catch (Exception e) {

object[0] = e;

}

}

});

thread.start();


while(!done) {

if (!display.readAndDispatch ()) display.sleep ();

}


//thread.join(); // BUG: gets stuck at this point

I have to comment the last line thread.join(); since the thread doesn't
terminate - it waits inside SWT (there is probably no one to pick up stored
runnable).

Thread [Thread-1] (Suspended)
owns: LibraryService (id=526)
waiting for: RunnableLock (id=527)
Object.wait(long) line: not available [native method]
RunnableLock(Object).wait() line: not available
Synchronizer.syncExec(Runnable) line: 169
Display.syncExec(Runnable) line: 4097
SafeUpdateController.syncExec(Runnable) line: 41
LibraryService.notifyListeners(MethodLibrary, int) line: 655
LibraryService.closeMethodLibrary(MethodLibrary) line: 369
LibraryService.closeCurrentMethodLibrary() line: 393
Publish.run(Object, Shell, PublishOptions) line: 130
Publish$1.run() line: 71
Thread.run() line: not available


Maybe you will see there something dangerous for normal execution as well.

Roman

"Roman Smirak" <roman.smirak@tietoenator.com> wrote in message
news:fe2qoa$pbl$1@build.eclipse.org...
> Hi,
>
> I have updated it to make it working with EPF 1.2 (note that I don't
> handle all the attributes via command line) - anyone interrested? Shall I
> put it somewhere?
>
> Roman
>
> "Shilpa Toraskar" <storaskar@xx.xxx.xxx> wrote in message
> news:5a308dc34033307c79db9d770be560a1$1@www.eclipse.org...
>> Not sure whether you saw this
>> http://www.eclipse.org/epf/composer_dev_guide/
>>
>> You need all these dependencies
>> http://www.eclipse.org/epf/composer_dev_guide/dev_env.php
>>
>> I am not sure what Europa consists of. Pls. make sure all those
>> dependencies listed above are included in Europa
>>
>> Shilpa
>>
>
>
Re: Publishing invoked from command line [message #584236 is a reply to message #42649] Thu, 04 October 2007 19:41 Go to previous message
Roman Smirak is currently offline Roman SmirakFriend
Messages: 136
Registered: July 2009
Senior Member
I have found better solution:
} finally {

done = true;

shell.getDisplay().wake();

lp.closeCurrentMethodLibrary();

}

Changed to:

} finally {

lp.closeCurrentMethodLibrary();

done = true;

shell.getDisplay().wake();

}


so that the main thread can still handle:
while(!done) {

if (!display.readAndDispatch ()) display.sleep ();

}


I expect this is command-line specific issue.

Roman

"Roman Smirak" <roman.smirak@tietoenator.com> wrote in message
news:fe3999$oen$1@build.eclipse.org...
> Just FYI - I found some issue there, the original patch contains code like
> this:
>
> Thread thread = new Thread(new Runnable() {
>
> public void run() {
>
> try {
>
> object[0] = Publish.this.run(args, shell, publishDataModel);
>
> } catch (Exception e) {
>
> object[0] = e;
>
> }
>
> }
>
> });
>
> thread.start();
>
>
> while(!done) {
>
> if (!display.readAndDispatch ()) display.sleep ();
>
> }
>
>
> //thread.join(); // BUG: gets stuck at this point
>
> I have to comment the last line thread.join(); since the thread doesn't
> terminate - it waits inside SWT (there is probably no one to pick up
> stored runnable).
>
> Thread [Thread-1] (Suspended)
> owns: LibraryService (id=526)
> waiting for: RunnableLock (id=527)
> Object.wait(long) line: not available [native method]
> RunnableLock(Object).wait() line: not available
> Synchronizer.syncExec(Runnable) line: 169
> Display.syncExec(Runnable) line: 4097
> SafeUpdateController.syncExec(Runnable) line: 41
> LibraryService.notifyListeners(MethodLibrary, int) line: 655
> LibraryService.closeMethodLibrary(MethodLibrary) line: 369
> LibraryService.closeCurrentMethodLibrary() line: 393
> Publish.run(Object, Shell, PublishOptions) line: 130
> Publish$1.run() line: 71
> Thread.run() line: not available
>
>
> Maybe you will see there something dangerous for normal execution as well.
>
> Roman
>
> "Roman Smirak" <roman.smirak@tietoenator.com> wrote in message
> news:fe2qoa$pbl$1@build.eclipse.org...
>> Hi,
>>
>> I have updated it to make it working with EPF 1.2 (note that I don't
>> handle all the attributes via command line) - anyone interrested? Shall I
>> put it somewhere?
>>
>> Roman
>>
>> "Shilpa Toraskar" <storaskar@xx.xxx.xxx> wrote in message
>> news:5a308dc34033307c79db9d770be560a1$1@www.eclipse.org...
>>> Not sure whether you saw this
>>> http://www.eclipse.org/epf/composer_dev_guide/
>>>
>>> You need all these dependencies
>>> http://www.eclipse.org/epf/composer_dev_guide/dev_env.php
>>>
>>> I am not sure what Europa consists of. Pls. make sure all those
>>> dependencies listed above are included in Europa
>>>
>>> Shilpa
>>>
>>
>>
>
>
Re: Publishing invoked from command line [message #584675 is a reply to message #42681] Wed, 10 October 2007 18:37 Go to previous message
Shilpa Toraskar is currently offline Shilpa ToraskarFriend
Messages: 102
Registered: July 2009
Senior Member
You could attach new patch to the bug. I am sure there are others who are
looking for similar solution.

Thanks

Shilpa Toraskar
Re: Publishing invoked from command line [message #584783 is a reply to message #43618] Fri, 12 October 2007 13:01 Go to previous message
Roman Smirak is currently offline Roman SmirakFriend
Messages: 136
Registered: July 2009
Senior Member
Hi,

I haven't made any changes in existing code - just cmdline plugin is
needed. Shall I create a patch anyway? I would prefer simply zip it and
attach as it is.

Roman

"Shilpa Toraskar" <storaskar@yahoo.com> wrote in message
news:c7af4a0b7d90d82161a942cea7dcf641$1@www.eclipse.org...
> You could attach new patch to the bug. I am sure there are others who are
> looking for similar solution.
>
> Thanks
>
> Shilpa Toraskar
>
Re: Publishing invoked from command line [message #584800 is a reply to message #43839] Fri, 12 October 2007 15:32 Go to previous message
Shilpa Toraskar is currently offline Shilpa ToraskarFriend
Messages: 102
Registered: July 2009
Senior Member
Sure.. anything works..

Thanks for your contribution

Shilpa
Re: Publishing invoked from command line [message #584877 is a reply to message #43870] Sat, 13 October 2007 13:20 Go to previous message
Roman Smirak is currently offline Roman SmirakFriend
Messages: 136
Registered: July 2009
Senior Member
Hi,

done: https://bugs.eclipse.org/bugs/attachment.cgi?id=80303

Roman

"Shilpa Toraskar" <storaskar@xx.xxx.xxx> wrote in message
news:6b78bc1d045037b49404d6ca93236ca6$1@www.eclipse.org...
> Sure.. anything works..
>
> Thanks for your contribution
>
> Shilpa
>
Previous Topic:Integration with ClearCase
Next Topic:1.2.0.1 fails under Ubuntu 7.10 (Gutsy)
Goto Forum:
  


Current Time: Thu Apr 18 09:11:08 GMT 2024

Powered by FUDForum. Page generated in 0.03106 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top