The Source for Java Technology Collaboration

Home » java.net Forums » OpenJFX » OpenJFX General Discussion

Thread: JavaFX as a utility scripting language

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 1 - Last Post: Mar 7, 2008 1:07 AM by: alexsch Threads: [ Previous | Next ]
bi11w00ds

Posts: 2
JavaFX as a utility scripting language
Posted: Mar 6, 2008 4:55 PM
 
  Click to reply to this thread Reply

All,
I'm just looking for thoughts, comments on JavaFX being used to replace traditional scripting languages such as Perl etc.

Aside from being a good basis to write GUI applications, I believe with
all the new constructs (specifically sequences) this would be a great non-gui
general purpose batch scripting type language.

Any thoughts?

alexsch

Posts: 238
Re: JavaFX as a utility scripting language
Posted: Mar 7, 2008 1:07 AM   in response to: bi11w00ds
 
  Click to reply to this thread Reply

I would prefer to use an fx property file to build a java project instead of ant xml files.
It can look like:

import  javafx.system.Project;
 
Project{
   src: "./sources"
   dist: "./distination"
   libs: [ "./lib/nimbus.jar", "./lib/otherlib.jar" ]
}

where Project is

package javafx.system;
 
public class Project{
  public attribute src:   String = "./src";
  public attribute build: String = "./build";
  public attribute libs: String[];
 
  public function   run() { /*   run project*/}
  public function build() { /* build project*/}
  //  end etc  ...
}





 XML java.net RSS