开发者

Build project on a remote machine

I typically use Netbeans (but also STS) to develop my Java code but I've inherited an old laptop and actually like sitting on my sofa developing however it's to slow to run:

  • Java based IDE (Netbeans/Eclipse)
  • Database Server (Oracle XE)
  • Oracle SQLDeveloper (Another Java Environment)
  • Application Server (Tomcat/or Glassfish)
  • Other little tools

I wanted to know if it 开发者_如何学JAVAwould be possible to develop in my local IDE but to have my code built and deployed by a remote machine (desktop PC which is infinitely more powerful!!). If this were possible could you please suggest some tool, prefereably open source.


  1. Fire up an SVN repo on your remote machine and have the code build when you check in using any number of continous integration tools(Hudson,Cruise Control, etc.).

  2. FTP the code to a directory and use a CRON or scheduled task to periodically build out of that directory.

  3. Install cygwin(windows) or just turn your machine on(linux) and script the deploy process in bash using scp or sftp for copy and execute an ant script over a remote shell.

  4. Zip the code, put it on a flash drive, walk over to the desktop, insert flash drive, build and deploy

There are an infinite number of ways to do this, but they all follow the same pattern you need to get the code there(remote copy) and figure out a mechanism initiate the build process. There are tools which do this and afford varying degrees of complexity(Atlassian) that cost Tens of thousands of dollars and there are ways to accomplish the same end that cost $0, but require access to an editor and a little googling skill. Which one you choose is a matter of preference, materials at hand, and your requirements.


Why you can't put your server components on desktop machine and compile sources in laptop deploying WAR/JAR to remote server?

I think it would be much more simpler than other approaches. Netbeans works well in laptops in contrary to heavy server components.


It sounds like a case for a remote desktop connection.


Take a look at rmake https://github.com/ericwoodruff/rmake I'm sure you can configure your IDE to invoke a commandline tool (I've done it with Eclipse).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜