Home Download Buy Blog Forum Support

Help needed with build systems

Help needed with build systems

Postby brt93yoda on Tue Jun 07, 2011 4:49 am

Hello, I'm trying to write a custom build system for java. I want my build system to compile and run a simple class. The problem I'm experiencing is that $basename and $filedir don't return anything. Here is my code so far.
Code: Select all
{
   "cmd": ["javac", "$file"],
   "cmd": ["java", "-cp", "${filedir:/}", "$basename"],
   "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
   "selector": "source.java"
}


Thanks.
brt93yoda
 
Posts: 1
Joined: Tue Jun 07, 2011 4:46 am

Re: Help needed with build systems

Postby guillermooo on Tue Jun 07, 2011 6:54 am

You can't use "cdm" twice and you seem to be using wrong variable names.

More info here:

http://sublimetext.info/docs/en/referen ... #variables
guillermooo
 
Posts: 718
Joined: Thu Jul 23, 2009 9:06 am


Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 18 guests