Skip to main content

Timeline for Getting Tridion to use SASS

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
Nov 5, 2014 at 9:19 comment added Bart Koopman @DamianJewett it is important to understand that a service user is usually executing the TBB code (different ones depening on preview and publish even), if possible I would try to run the SASS compiler with command line parameters rather than depending on environment variables. Else make sure the right ones are set for the users that might execute your code.
Oct 30, 2014 at 12:50 comment added Damian Jewett Yes, one of the problems I was having was due to JAVA_HOME not being set (according to an exception thrown by my TBB), despite the fact that JAVA_HOME WAS set in both the user and system environment variables. I got past this by setting the JAVA_HOME environment variable explicitly in my TBB. (Java is used by Maven, which is what we are using to compile SASS).
Oct 6, 2014 at 9:37 comment added Bart Koopman @DamianJewett a TBB is usally run by the NT Authority/Network Service or the local system account, depending under which account your Publisher service is running. But when you preview, it is the account of the Service Host most likely. With that said, I never encountered any permission issues running the cmd process this way. What I did have problems with was which programs were in my path for example.
Oct 5, 2014 at 15:28 comment added Damian Jewett Seems to be a permissions issue, perhaps something similar to this: codeproject.com/Questions/652362/… But I still have not been able to do Process.Start() from within my TBB. I can make the same Process.Start() call from a regular console application, but not from a TBB...
Oct 4, 2014 at 19:24 comment added Damian Jewett Thanks Bart! This piece of code is very helpful. I am currently working on something similar. However, one thing I am having trouble with is running a Windows command from my Template Building Block. I have followed your code closely, but for some reason, my cmd doesn't seem to run.
Oct 3, 2014 at 9:13 history answered Bart Koopman CC BY-SA 3.0