PMS GIT Builder Tool

Discuss third-party additions, plugins and translations for PS3 Media Server

Re: PS3MS SVN Builder Tool

Postby marco275 » Mon Jan 02, 2012 10:39 am

Thank you again :)

Tool is shutting down now whitout asking if you want to delete the source files.
I've made a little change to the batchfile before, with that option working, so i'm going back to that for now.
But I very much appreciate you're updating this tool :)
Is it possible to make it rename the setupfile including the buildnumber as the googlecode version did?
Attachments
BUILD_PMS_GIT.zip
(642 Bytes) Downloaded 133 times
marco275
 
Posts: 177
Joined: Thu Feb 05, 2009 2:29 pm

Re: PS3MS SVN Builder Tool

Postby Raptor399 » Mon Jan 02, 2012 7:07 pm

The latest version of the pom.xml uses the git-commit-id-plugin, so it should be possible to rig the extra.nsh to something like:


Code: Select all
; This NSIS header file will be filtered by Maven so some additional
; variables from the pom.xml can be used in NSIS as well. This in
; addition to all the project variables that are already available
; from the "target\project.nsh" that is automatically generated by
; the nsis-maven-plugin.

!define PROJECT_VERSION_SHORT "${project.version.short}"
!define PROJECT_BINARIES "${project.binaries}"
!define GIT_COMMIT_ID "${git.commit.id}"
!define GIT_COMMIT_TIME "${git.commit.time}"

and then use those definitions in pms.nsi or setup.nsi to influence the name of the executables.
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: PS3MS SVN Builder Tool

Postby lightglitch » Mon Jan 02, 2012 7:42 pm

I think what he wants is to change:

Code: Select all
<outputFile>${project.build.directory}/PMS-setup.exe</outputFile>

to
Code: Select all
<outputFile>${project.build.directory}/PMS-${project.version}-${git.commit.id}-setup.exe</outputFile>
lightglitch a.k.a Mário Franco
lightglitch
Project Member
 
Posts: 113
Joined: Mon Jun 22, 2009 2:58 pm

Re: PS3MS SVN Builder Tool

Postby lightglitch » Tue Jan 03, 2012 11:53 am

I solved the git update problem, you no longer need to delete the sources.
Attachments
BUILD_PMS_GIT.zip
(641 Bytes) Downloaded 152 times
lightglitch a.k.a Mário Franco
lightglitch
Project Member
 
Posts: 113
Joined: Mon Jun 22, 2009 2:58 pm

Re: PS3MS SVN Builder Tool

Postby BlackSunshine » Thu Jan 05, 2012 5:19 pm

Old SVN Builder worked great! New SVN Builder not so much....

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:18.297s
[INFO] Finished at: Thu Jan 05 10:49:09 EST 2012
[INFO] Final Memory: 31M/339M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:nsis-maven-plugin:1.0-SNAPSHOT:compile (build-pms) on project pms: Execution of makensis compiler failed. See output above for details. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/disp ... nException
A duplicate file name exists, or the file cannot be found.
BlackSunshine
 
Posts: 13
Joined: Mon May 23, 2011 12:45 am

Re: PS3MS SVN Builder Tool

Postby lightglitch » Fri Jan 06, 2012 1:11 am

BlackSunshine wrote:Old SVN Builder worked great! New SVN Builder not so much....

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:18.297s
[INFO] Finished at: Thu Jan 05 10:49:09 EST 2012
[INFO] Final Memory: 31M/339M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:nsis-maven-plugin:1.0-SNAPSHOT:compile (build-pms) on project pms: Execution of makensis compiler failed. See output above for details. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/disp ... nException
A duplicate file name exists, or the file cannot be found.


Does it download the all the source code and builds it?
For what I can see the problem is creating the setup but I need more information.
lightglitch a.k.a Mário Franco
lightglitch
Project Member
 
Posts: 113
Joined: Mon Jun 22, 2009 2:58 pm

Re: PS3MS SVN Builder Tool

Postby marco275 » Fri Jan 06, 2012 11:07 am

Strange, tool works great for me, no errors at all.
Maybe it's your firewall or so?
marco275
 
Posts: 177
Joined: Thu Feb 05, 2009 2:29 pm

Re: PS3MS SVN Builder Tool

Postby BlackSunshine » Fri Jan 06, 2012 6:48 pm

lightglitch wrote:
Does it download the all the source code and builds it?
For what I can see the problem is creating the setup but I need more information.


I downloaded the new SVN Builder, unzipped, ran the batch file. Seems to check for/download the source, and start the building process, then errors out in the same spot every time.

Is there a way of logging the whole process in order to figure out what is going on?
BlackSunshine
 
Posts: 13
Joined: Mon May 23, 2011 12:45 am

Re: PS3MS SVN Builder Tool

Postby lightglitch » Fri Jan 06, 2012 7:02 pm

if you edit the .bat file change:

Code: Select all
CALL mvn package

to
Code: Select all
CALL mvn -X -e package


and execute the bat

Code: Select all
BUILD_PMS_GIT.bat > out.log 2> error.log


on the command line.
lightglitch a.k.a Mário Franco
lightglitch
Project Member
 
Posts: 113
Joined: Mon Jun 22, 2009 2:58 pm

Re: PS3MS SVN Builder Tool

Postby BlackSunshine » Fri Jan 06, 2012 7:14 pm

Here are both log files.
Attachments
PMS GIT Builder ErrorLog.zip
(81.05 KiB) Downloaded 125 times
BlackSunshine
 
Posts: 13
Joined: Mon May 23, 2011 12:45 am

PreviousNext

Return to Additions and Plugins

Who is online

Users browsing this forum: No registered users and 1 guest