{"id":239,"date":"2012-03-05T19:40:26","date_gmt":"2012-03-05T17:40:26","guid":{"rendered":"http:\/\/www.pellissier.co.za\/hermien\/?p=239"},"modified":"2012-03-05T19:40:26","modified_gmt":"2012-03-05T17:40:26","slug":"building-a-netbeans-platform-application-from-the-command-line-part-2","status":"publish","type":"post","link":"https:\/\/www.pellissier.co.za\/hermien\/?p=239","title":{"rendered":"Building a NetBeans Platform Application from the Command Line (Part 2)"},"content":{"rendered":"<p>Building an Ant-based NetBeans Platform application from the command line on a build server is a typically a little different from building it on developer PC. In an earlier <a href=\"http:\/\/www.pellissier.co.za\/hermien\/?p=101\">post<\/a> I explored which ant targets are useful when building your application from the command line. In this post I explore what is different on a build server.<\/p>\n<p>The nbproject\/private folder in suite and module projects contain files that are specific to a particular developer&#8217;s PC. As such, this folder should typically not be checked into a source repository. And hence when a build server checks out the source code, that folder will not exist either.<\/p>\n<p>That may seem unimportant. However, one of the properties that is specified in this way is the platform folder location. Without this property, the ant scripts will not know where to find the platform or even the build harness itself. There is luckily an easy way to specify these properties by adding some command line parameters to the ant call to build the suite:<\/p>\n<p>[text]ant -Dnbplatform.default.netbeans.dest.dir=&#8221;C:Program FilesNetBeans 7.1&#8243;<br \/>\n    -Dnbplatform.default.harness.dir=&#8221;C:Program FilesNetBeans 7.1harness&#8221;<br \/>\n    -f build.xml build[\/text]<\/p>\n<p>Note that this is all one command &#8211; the multiple lines above are just for the sake of readability.<\/p>\n<p>Read my series of articles <a href=\"http:\/\/netbeans.dzone.com\/netbeans-platform-build-system-1\">On the NetBeans Platform Build System<\/a> for more information regarding the build harness.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Building an Ant-based NetBeans Platform application from the command line on a build server is a typically a little different from building it on developer PC. In an earlier post I explored which ant targets are useful when building your application from the command line. In this post I explore what is different on a &#8230; <a title=\"Building a NetBeans Platform Application from the Command Line (Part 2)\" class=\"read-more\" href=\"https:\/\/www.pellissier.co.za\/hermien\/?p=239\" aria-label=\"More on Building a NetBeans Platform Application from the Command Line (Part 2)\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[3,5],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1v8WL-3R","_links":{"self":[{"href":"https:\/\/www.pellissier.co.za\/hermien\/index.php?rest_route=\/wp\/v2\/posts\/239"}],"collection":[{"href":"https:\/\/www.pellissier.co.za\/hermien\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pellissier.co.za\/hermien\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pellissier.co.za\/hermien\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pellissier.co.za\/hermien\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=239"}],"version-history":[{"count":0,"href":"https:\/\/www.pellissier.co.za\/hermien\/index.php?rest_route=\/wp\/v2\/posts\/239\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.pellissier.co.za\/hermien\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pellissier.co.za\/hermien\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pellissier.co.za\/hermien\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}