<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Yes, I would think tomcat would have a thread pool.<div>But -- actually if you look at the function, I don't think exitval</div><div>is actually used for anything important, so that call could be removed.</div><div>The state of the compilation&nbsp;is measured by whether the output file is produced.</div><div><br><div><div>On Sep 4, 2008, at 8:44 PM, Henry Minsky wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Maybe I should have the&nbsp;callJavaCompileCommand method call the flex compiler<div>in a new thread??&nbsp;</div><div><br></div><div><br><br><div class="gmail_quote">On Thu, Sep 4, 2008 at 8:43 PM, Henry Minsky <span dir="ltr">&lt;<a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a>></span> wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr"><div class="gmail_quote"><div class="Ih2E3d"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div style="word-wrap:break-word"><div><br></div><div><br></div><div><div>2)</div> <div>+ &nbsp; &nbsp; &nbsp; &nbsp;exitval = flex2.compiler.util.ThreadLocalToolkit.errorCount();</div><div>Couldn't find any doc for ThreadLocalToolkit. &nbsp;Are the errors additive,</div><div>or will they be reset to 0 on each call into the compiler? &nbsp;(i.e. I'm</div> <div>worried about an error being 'sticky' to the next compile - I guess</div><div>it would only result in a stray FAIL println to the error console).</div><div></div></div></div></blockquote><div><br></div></div> <div>The ThreadLocalToolkit class has a flex Logger object, which is stored within a ThreadLocal</div> <div>object, which is a Java thing that creates local vars which are unique to a thread. &nbsp;The Logger object</div><div>holds the error count. So as long as each compile is done in a new thread, the error count</div><div>will get reset. Now, the question is whether each compile actually does happen in a new thread. I&nbsp;</div> <div>bet Tomcat has some kind of a thread pool, so I wonder if this is going to cause confusion</div><div>at some point.&nbsp;</div><div><br></div><div><br></div><div><br></div><div>&nbsp;</div></div> </div> </blockquote></div><br><br clear="all"><br>-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br><br><br> </div></div></blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br class="Apple-interchange-newline">--</div><div><br>Don Anderson<br>Java/C/C++, Berkeley DB, systems consultant<br><br>voice: 617-547-7881<br>email:&nbsp;<a href="mailto:dda@ddanderson.com">dda@ddanderson.com</a><br>www:&nbsp;<a href="http://www.ddanderson.com/">http://www.ddanderson.com</a><br></div></div></span></span><br class="Apple-interchange-newline"></div></span></div></span><br class="Apple-interchange-newline"> </div><br></div></body></html>