Home Download Buy Blog Forum Support

Regex to catch this Build error

Regex to catch this Build error

Postby jasondavis on Fri Dec 16, 2011 3:40 am

I am trying to add a build file for a build system that is just like Ant except is built with PHP called Phing

Here is the code I have for my Phing.sublime-build file so far
Code: Select all
   "cmd": ["phing"],
   "working_dir": "${project_path:${folder}}",
   "selector": "source.php, source.js, source.html, source.css",

Here is an example error message I got in command promt
Code: Select all
Error reading project file [wrapped: dirname 9unknown0 doesn't support the 'property' attribute.
Total time: 0.3986 seconds

I am wanting to add in the regex support for catching the error in the build file like the other build files do in sublime.

Here is how the Ant.sublime-build file does it
Code: Select all
"file_regex": "^ *\\[javac\\] (.+):([0-9]+):() (.*)$",

Could someone show me how to make it work with the type of error I got above, the proper regex for my build file
Posts: 23
Joined: Thu Sep 01, 2011 12:52 am

Re: Regex to catch this Build error

Postby tokanizar on Sat May 10, 2014 12:33 am

I suppose Build System is not used by many people. I'm struggling making a Phing build system to work with a custom named "phing-build.xml" instead of "build.xml" file. Also have no idea about the "file_regex" directive. :cry:
Posts: 7
Joined: Wed Mar 28, 2012 3:56 am

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 44 guests