Sublime Forum

Build : Vm and program arguments like eclipse

#1

Hi,

I would like sublime to build my project.

Lets say I have the following configurations in eclipse to run my java project:

Main Class:

com.abc.def

Program Arguments:

-c Yx220924629224951977316992 -u 0 -d ./processes_cookies/0 -p ./processes_cookies/0 -l ./processes_logs/0 -i 0 -a 0 ./iegather2.cfg stanChart-request.xml

VM Arguments:

-Dwebdriver.chrome.driver=“D:\dap\chromedriver_win32_2.9\chromedriver.exe” -DrobotId=10 -Dlog4j.configurationFile=./resources/config/log4j2.xml -DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector -DlogDir=./logs/

How do I do the same in my st2 to build the project from there. I know I have to edit the build properties, but have no clue how to do the same.

0 Likes

#2

Bump.! Any help.?? :smile:

0 Likes

#3

We all understand that it’s an urgent matter for you (and probably only for you), but there is no reason to bump a thread that’s already first.
And bump after an hour? That’s a totally no no…

That being said, you could take a look at the docs and try to form the build query:

{ "cmd": "EXECUTABLE", "-Dwebdriver.chrome.driver="D:\dap\chromedriver_win32_2.9\chromedriver.exe"", "-DrobotId=10", "-Dlog4j.configurationFile=./resources/config/log4j2.xml", "-DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector", "-DlogDir=./logs/" ] }

or

{ "cmd": "EXECUTABLE", "-c", "Yx220924629224951977316992", "-u", "0", "-d", "./processes_cookies/0", "-p", "./processes_cookies/0", "-l", "./processes_logs/0", "-i", "0", "-a", "0", "./iegather2.cfg", "stanChart-request.xml" ] }

(obviously, you need to change EXECUTABLE to the compiler executable (or whatever)

0 Likes

#4

[quote=“iamntz”]We all understand that it’s an urgent matter for you (and probably only for you), but there is no reason to bump a thread that’s already first.
And bump after an hour? That’s a totally no no…

That being said, you could take a look at the docs and try to form the build query:

{ "cmd": "EXECUTABLE", "-Dwebdriver.chrome.driver="D:\dap\chromedriver_win32_2.9\chromedriver.exe"", "-DrobotId=10", "-Dlog4j.configurationFile=./resources/config/log4j2.xml", "-DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector", "-DlogDir=./logs/" ] }

or

[code]{
“cmd”: “EXECUTABLE”, “-c”, “Yx220924629224951977316992”, “-u”, “0”, “-d”, “./processes_cookies/0”, “-p”, “./processes_cookies/0”, “-l”, “./processes_logs/0”, “-i”, “0”, “-a”, “0”, “./iegather2.cfg”, “stanChart-request.xml” ]

Hi, thanks for the reply.

But I guess I have to compile and run with these arguments so I have to build a batch or something ? And how do i set this up to run on my main class of the project. ?
}[/code]

(obviously, you need to change EXECUTABLE to the compiler executable (or whatever)[/quote]

0 Likes

#5

And also I need to run with both program and VM arguments at once.!

0 Likes