common.properties 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. #
  2. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
  3. #
  4. # Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
  5. #
  6. # Oracle and Java are registered trademarks of Oracle and/or its affiliates.
  7. # Other names may be trademarks of their respective owners.
  8. #
  9. # The contents of this file are subject to the terms of either the GNU General Public
  10. # License Version 2 only ("GPL") or the Common Development and Distribution
  11. # License("CDDL") (collectively, the "License"). You may not use this file except in
  12. # compliance with the License. You can obtain a copy of the License at
  13. # http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the
  14. # License for the specific language governing permissions and limitations under the
  15. # License. When distributing the software, include this License Header Notice in
  16. # each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle
  17. # designates this particular file as subject to the "Classpath" exception as provided
  18. # by Oracle in the GPL Version 2 section of the License file that accompanied this code.
  19. # If applicable, add the following below the License Header, with the fields enclosed
  20. # by brackets [] replaced by your own identifying information:
  21. # "Portions Copyrighted [year] [name of copyright owner]"
  22. #
  23. # Contributor(s):
  24. #
  25. # The Original Software is NetBeans. The Initial Developer of the Original Software
  26. # is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All
  27. # Rights Reserved.
  28. #
  29. # If you wish your version of this file to be governed by only the CDDL or only the
  30. # GPL Version 2, indicate your decision by adding "[Contributor] elects to include
  31. # this software in this distribution under the [CDDL or GPL Version 2] license." If
  32. # you do not indicate a single choice of license, a recipient has the option to
  33. # distribute your version of this file under either the CDDL, the GPL Version 2 or
  34. # to extend the choice of license to its licensees as provided above. However, if you
  35. # add GPL Version 2 code and therefore, elected the GPL Version 2 license, then the
  36. # option applies only if the new code is made subject to such option by the copyright
  37. # holder.
  38. #
  39. #####################################################################################
  40. # Initialization. Properties that are used during build script initialization.
  41. # location of the custom tasks' sources and the destination directory for their
  42. # build
  43. custom.tasks.src=${common.dir}/../.ant-lib/src
  44. custom.tasks.cls=${basedir}/.ant-lib
  45. #####################################################################################
  46. # Check-out. Properties that are used during check-out.
  47. # whether to check out sources, or copy them from the location specified in
  48. # ${sources.dir}; 'true'/'false'
  49. checkout.sources=true
  50. # coordinates of the project's sources within the cvs repository
  51. # * ${cvs.root} - obvious
  52. # * ${cvs.branch} - the branch from which the sources should be checked out; if
  53. # this property is empty, then the sources will be checked out from trunk
  54. # * ${cvs.timestamp} - the timestamp for which the sources should be checked out; if
  55. # this property is empty, then the latest sources will be checked out
  56. # * ${cvs.module} - the module that should be checked out; at this point the
  57. # build framework is not compatible with modules which alias several other
  58. # modules
  59. cvs.root=:pserver:[email protected]:/cvs
  60. cvs.branch=
  61. cvs.module=nbi
  62. cvs.timestamp=
  63. # coordinates of the project's sources' localized files within the cvs
  64. # repository
  65. # * ${translatedfiles.module} - name of the cvs module with the localized files
  66. # * ${translatedfiles.path} - path to the localized files for the project
  67. # within the cvs module
  68. translatedfiles.module=translatedfiles
  69. translatedfiles.path=src/${cvs.module}/${cvs.path}
  70. # sources parameters; a search-and-replace will be run over the sources after
  71. # check-out, replacing [token] => [value]; regular expressions are not allowed
  72. # * ${sources.params.length} - total number of the parameters
  73. # * indices should start with 1
  74. # * parameters are not i18n compliant
  75. sources.params.length=0
  76. #sources.params.1.token=
  77. #sources.params.1.value=
  78. # several simple shorthands for various directories
  79. # * ${cvs.module.dir} - path to the root of the cvs module
  80. # * ${cvs.dir} - path to the current project's sources root
  81. # * ${translatedfiles.dir} - path to the localized files for the project
  82. cvs.module.dir=${work.dir}/${cvs.module}
  83. cvs.dir=${cvs.module.dir}/${cvs.path}
  84. translatedfiles.dir=${work.dir}/${translatedfiles.module}/${translatedfiles.path}
  85. #####################################################################################
  86. # NB Projects. Properties related to cleaning/building netbeans projects.
  87. # path to the netbeans project that should be built; relative to the
  88. # ${cvs.dir}
  89. nbproject.path=.
  90. # names of targets in component's (or engine's) build script that will be
  91. # called as part of the build process
  92. # * ${nb.target.clean} - will be called when cleaning the netbeans project
  93. # * ${nb.target.build} - will be called when building the netbeans project
  94. nb.target.clean=clean
  95. nb.target.build=jar
  96. # additional properties which will be passed to the netbeans project build
  97. # script
  98. # * ${nb.platform.home} - location of the jdk codenamed "JDK 1.5", this jdk
  99. # is expected to be used by all netbeans projects
  100. # * ${nb.ignore.native} - tells the netbeans project's build script to skip
  101. # building native components, if it is able to do so - these will be built
  102. # as part of the project's global build script
  103. # * ${nb.no.dependencies} - tells the netbeans project's build script to skip
  104. # building its dependencies, the dependencies are expected to be built by the
  105. # project's global build script
  106. # * ${nb.dont.build.custom.tasks} - tells the netbeans project's build script
  107. # to skip building custom tasks for it, as they will already be built by the
  108. # global script
  109. # * ${nb.custom.tasks.cls} - points the netbeans project's build script to the
  110. # location of the built custom tasks
  111. nb.platform.home=-Dplatforms.JDK_1.5.home=${java.home}/..
  112. nb.platform.home.macos=-Dplatforms.JDK_1.5.home=${java.home}
  113. nb.ignore.native=-Dignore.native=true
  114. nb.no.dependencies=-Dno.dependencies=true
  115. nb.dont.build.custom.tasks=-Ddont.build.custom.tasks=true
  116. nb.custom.tasks.cls=-Dcustom.tasks.cls=${custom.tasks.cls}
  117. # default path to the distributives directory of the netbeans project; relative
  118. # to ${nbproject.path}
  119. nb.dist.path=dist
  120. # path to the classes directory of the netbeans project; relative to
  121. # ${nbproject.path}
  122. nb.classes.dir=build/classes
  123. # path to the manifest file of the netbeans project; relative to the
  124. # ${nbproject.path}
  125. nbproject.manifest=manifest.mf
  126. # path to the dist directory that the nbproject should use; since we do not use
  127. # the netbeans' packaging mechanism, we have the flexibility to specify any
  128. # distributives directory we want
  129. nbproject.dist.dir=${cvs.dir}/${nbproject.path}/${nb.dist.path}
  130. #####################################################################################
  131. # Native. Properties related to cleaning/building native components.
  132. # path to the directory with the sources for the native components; relative
  133. # to the root of the project's sources
  134. native.path=${cvs.module}/${cvs.path}/native
  135. # path to the directory with the localized files for the native components;
  136. # relative to the root of the project's localized files directory
  137. translatedfiles.native.path=${translatedfiles.module}/${translatedfiles.path}/native
  138. # list of platforms for which the native components should be built
  139. # * the list should be space-separated
  140. native.platforms=windows linux solaris-x86 solaris-sparc macosx
  141. # directory on the remote machine where the build script should operate
  142. # * this is the default value, the actual value is expected to be passed in
  143. # through the environment properties
  144. remote.work.dir=~/.nbi-build
  145. # ssh properties: executable name, set of arguments and the command.
  146. # * ${remote.host}, ${remote.port} and ${remote.user} are environment specific
  147. # and are expected to be passed in through the environment properties
  148. ssh.executable=ssh
  149. ssh.arguments=-l ${remote.user} -p ${remote.port} ${remote.host}
  150. ssh.command.clean=rm -rf ${remote.work.dir};
  151. ssh.command.build=rm -rf ${remote.work.dir}; \
  152. mkdir ${remote.work.dir}; \
  153. cd ${remote.work.dir}; \
  154. if [ "${cvs.branch}" = "" ]; then \
  155. if [ "${cvs.timestamp}" = "" ]; then \
  156. cvs -d ${cvs.root} co -P ${native.path}; \
  157. cvs -d ${cvs.root} co -P ${translatedfiles.native.path}; \
  158. else\
  159. cvs -D ${cvs.timestamp} -d ${cvs.root} co -P ${native.path}; \
  160. cvs -D ${cvs.timestamp} -d ${cvs.root} co -P ${translatedfiles.native.path}; \
  161. fi;\
  162. else \
  163. if [ "${cvs.timestamp}" = "" ]; then \
  164. cvs -d ${cvs.root} co -r ${cvs.branch} -P ${native.path}; \
  165. cvs -d ${cvs.root} co -r ${cvs.branch} -P ${translatedfiles.native.path}; \
  166. else \
  167. cvs -D ${cvs.timestamp} -d ${cvs.root} co -r ${cvs.branch} -P ${native.path}; \
  168. cvs -D ${cvs.timestamp} -d ${cvs.root} co -r ${cvs.branch} -P ${translatedfiles.native.path}; \
  169. fi;\
  170. fi; \
  171. cp -r ${translatedfiles.native.path} ${native.path}; \
  172. cd ${native.path}/${platform}; \
  173. make
  174. # scp properties: executable name, set of arguments, remote directory, local
  175. # directory
  176. # * ${remote.host}, ${remote.port} and ${remote.user} are platform and
  177. # environment specific and are expected to be passed in through the
  178. # environment properties
  179. # * name of the file to copy is platform specific and is defined elsewhere,
  180. # most likely in the base build script for a project type (engine, product,
  181. # etc.)
  182. # * ${platform} will be defined at runtime, as these commands will be executed
  183. # in loop over the list of platforms
  184. scp.executable=scp
  185. scp.arguments=-P ${remote.port}
  186. scp.remote.dir=${remote.user}@${remote.host}:${remote.work.dir}/${native.path}/${platform}/${nb.dist.path}
  187. scp.local.dir=${work.dir}/${native.path}/${platform}/${nb.dist.path}
  188. # names of the native distributive files for various platforms
  189. native.dist.file.windows=windows.dll
  190. native.dist.file.linux=linux.so
  191. native.dist.file.solaris-x86=solaris-x86.so
  192. native.dist.file.solaris-sparc=solaris-sparc.so
  193. native.dist.file.macosx=macosx.dylib
  194. #####################################################################################
  195. # Release. Properties controlling the 'release' process
  196. release.to.server=true
  197. #####################################################################################
  198. # Miscellaneous. Properties that are used elsewhere.
  199. # these properties control the environment for the jarsigner process
  200. # * ${jarsigner.enabled} - whether to sign jars
  201. # * ${jarsigner.xmx} - max heap size for the jarsigner process
  202. # * ${jarsigner.executable} - path to jarsigner executable (optional)
  203. jarsigner.enabled=true
  204. jarsigner.xmx=1024m
  205. # these properties control the environment for the pack200 and unpack200
  206. # processes
  207. # * ${pack200.enabled} - whether to repackage jars (can be specified in each product)
  208. # * ${use.internal.packer} - whether to use the same JVM for packing jars (can be specified in each product)
  209. # it is risky because of memory leaks and possible OOMs
  210. # * ${use.internal.unpacker} - whether to use the same JVM for unpacking jars (can be specified in each product)
  211. # it is risky because of memory leaks and possible OOMs
  212. # * ${pack200.xmx} - -Xmx jvm argument value
  213. # * ${pack200.perm.size} - -XX:PermSize jvm argument value
  214. # * ${pack200.max.perm.size} - -XX:MaxPermSize jvm argument value
  215. # * ${pack200.executable} - path to pack200 executable (optional)
  216. # * ${unpack200.executable} - path to unpack200 executable (optional)
  217. # * ${verification.java.executable} - path to java executable that would be used for verification of packaged jars (optional)
  218. pack200.xmx=768m
  219. pack200.perm.size=32m
  220. pack200.max.perm.size=512m
  221. # these properties control the environment for the external processes running during the build
  222. # * ${process.max.execution.time} - maximum time (in milliseconds) for running the process
  223. # if set to zero then processes would run without timeout
  224. # default value is 600000=10min (defined in nbi/infra/build/.ant-lib/src/org/netbeans/installer/infra/build/ant/utils/Utils.java)
  225. # these properties control native executable paths
  226. # * ${tar.executable} - path to native tar/gtar/gnutar executable
  227. # * ${ls.executable} - path to native ls executable
  228. # * ${unzip.executable} - path to native unzip executable