You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by di...@apache.org on 2003/10/14 08:49:49 UTC

cvs commit: maven-plugins/nsis/src/plugin-resources/templates setup.jelly

dion        2003/10/13 23:49:49

  Modified:    nsis/src/plugin-resources/templates setup.jelly
  Log:
  Add some directories on the include list
  Conditionally add the logo in
  
  Revision  Changes    Path
  1.2       +18 -8     maven-plugins/nsis/src/plugin-resources/templates/setup.jelly
  
  Index: setup.jelly
  ===================================================================
  RCS file: /home/cvs/maven-plugins/nsis/src/plugin-resources/templates/setup.jelly,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- setup.jelly	14 Oct 2003 06:33:09 -0000	1.1
  +++ setup.jelly	14 Oct 2003 06:49:48 -0000	1.2
  @@ -16,7 +16,9 @@
   ; add project source onto the include list
   !addincludedir "${maven.nsis.src}"
   </util:available>
  +; add generated files onto the include list
   !addincludedir "${maven.build.dir}"
  +; add plugin supplied files onto the include list
   !addincludedir "${plugin.resources}"
   
   ; macro for the image on the install screen
  @@ -39,14 +41,15 @@
   ; Adds an XP manifest to the installer
   XPStyle on
   
  -; branding with maven logo
  +; branding with logo
  +; FIXME: position and size need to be properties
   AddBrandingImage left 70|267
   
   ; Sets the font of the installer
   SetFont "Arial" 8
   
   ; License Information
  -LicenseText "This program is Licensed under The Apache Software License, Version 1.1."
  +LicenseText "${PROJECT_LICENSE_TEXT}"
   LicenseData "${PROJECT_LICENSE_FILE}"
   
   ; The default installation directory
  @@ -89,8 +92,9 @@
   
   ; -------------------------------------------------------------- Create Shortcuts
   Section "Create Start Menu Shortcut(s)"
  -;  it would be nice to get all this from navigation.xml :-)
     CreateDirectory "${PROJECT_STARTMENU_FOLDER}"
  +;  it would be nice to get all this from navigation.xml :-)
  +; FIXME: need to use an include for this.
     CreateShortCut "${PROJECT_STARTMENU_FOLDER}\Maven.lnk" "$INSTDIR\bin\maven.bat" "" "$INSTDIR\bin\maven.bat" 0
     CreateShortCut "${PROJECT_STARTMENU_FOLDER}\Install Maven Repository.lnk" "$INSTDIR\bin\install_repo.bat" "" "$INSTDIR\install_repo.bat" 0
     CreateShortCut "${PROJECT_STARTMENU_FOLDER}\Uninstall.lnk" "$INSTDIR\Uninst.exe" "" "$INSTDIR\Uninst.exe" 0
  @@ -142,15 +146,21 @@
   
   ; -------------------------------------------------------------- Add Images to the Installer / UnInstaller
   Function .onGUIInit
  -   !insertmacro BrandingImage "maven.bmp" ""
  -   ; TODO Check for a JAVA_HOME environment variable
  -   Call AssertJavaHome
  +   !ifdef PROJECT_LOGO
  +     !insertmacro BrandingImage "${PROJECT_LOGO}" ""
  +     ; FIXME: Make an include
  +     ; TODO Check for a JAVA_HOME environment variable
  +     Call AssertJavaHome
  +   !endif
   
   FunctionEnd
   
  -; add the maven logo to the un-installer
  +; add the logo to the un-installer
   Function un.onGUIInit
  -   !insertmacro BrandingImage "maven.bmp" ""
  +   !ifdef PROJECT_LOGO
  +     !insertmacro BrandingImage "${PROJECT_LOGO}" ""
  +     ; FIXME: Make an include
  +   !endif
   FunctionEnd
   
   ; -------------------------------------------------------------- End of File
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org