Thanks, I understand the issue now.<br><br>--Oleg<br><br><div class="gmail_quote">15 февраля 2012 г. 19:35 пользователь Brian Stansberry <span dir="ltr">&lt;<a href="mailto:brian.stansberry@redhat.com">brian.stansberry@redhat.com</a>&gt;</span> написал:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Comments in-line:<br>
<div class="im"><br>
On 2/15/12 10:03 AM, Jaikiran Pai wrote:<br>
&gt; Oleg, sorry about the late response.<br>
&gt;<br>
&gt; Currently in AS7 we have xml parsing happening within the AS7 code base<br>
&gt; for the following xmls:<br>
&gt;<br>
&gt; 1) The standalone*.xml/domain*.xml<br>
<br>
</div>These files (and host.xml) should be excluded from this effort. They<br>
have significantly different requirements, primarily related to the need<br>
to maintain and write back the unresolved value.<br>
<div class="im"><br>
&gt; 2) The jboss-deployment-structure.xml<br>
&gt; 3) The jboss-ejb-client.xml<br>
&gt; 4) The jboss-pojo xml<br>
&gt; 5) The jboss-service.xml<br>
&gt;<br>
&gt; and probably a few others. Then we have parsers in other projects<br>
&gt; outside of AS7 codebase which deal with (for example):<br>
&gt;<br>
&gt; 1) The spec specified EE descriptors like ejb-jar.xml, web.xml,<br>
&gt; application.xml<br>
&gt; 2) JBoss specific (EE) deployment descriptors for the deployments like<br>
&gt; jboss-web.xml, jboss-app.xml, jboss-ejb3.xml<br>
&gt;<br>
&gt; These have their own set of parsers.<br>
&gt;<br>
&gt; So obviously trying to _share_ the same system property replacement<br>
&gt; logic utility class, between these projects isn&#39;t going to work out. And<br>
&gt; since it&#39;s just going to be one since class which is going to parse and<br>
&gt; replace the system property, I think we should just create it in the AS7<br>
&gt; code base and let the parsers in the AS7 code base use that (whichever<br>
&gt; parser wants it). The other projects (like jboss-metadata) can use their<br>
&gt; own (actually we just added one sometime back to support system property<br>
&gt; replacement for &quot;distinct-name&quot; element in the JBoss specific EE<br>
&gt; descriptors).<br>
&gt;<br>
&gt; By the way, the DMR project has a class which handles this property<br>
&gt; replacement (in that project). You might want to borrow that relevant<br>
&gt; code<br>
&gt; <a href="https://github.com/jbossas/jboss-dmr/blob/master/src/main/java/org/jboss/dmr/ExpressionValue.java#L110" target="_blank">https://github.com/jbossas/jboss-dmr/blob/master/src/main/java/org/jboss/dmr/ExpressionValue.java#L110</a>.<br>

&gt;<br>
<br>
</div>In a commment on the JIRA I pointed out the old jboss-common-core<br>
parsing method. But Jaikiran is right to highlight the DMR method as a<br>
better choice. Scott Stark added logic to it for resolving against the<br>
VM environment variables (System.getenv()) and not just the system<br>
properties.<br>
<div class="im HOEnZb"><br>
&gt; -Jaikiran<br>
&gt;<br>
&gt; On Friday 10 February 2012 02:31 PM, Oleg Kulikov wrote:<br>
&gt;&gt; Hi Jaikiran,<br>
&gt;&gt;<br>
&gt;&gt; Can you explain more details about your vision of the property<br>
&gt;&gt; replacement task. In general it is interested how deep it should be<br>
&gt;&gt; shared between different substems where xml descriptors are used.<br>
&gt;&gt; Should it be a common parsing utility with description which properies<br>
&gt;&gt; allow expressions or it may be just a simple utility method shared<br>
&gt;&gt; between parsing methods?<br>
&gt;&gt;<br>
&gt;&gt; -- Oleg.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; jboss-as7-dev mailing list<br>
&gt;&gt; <a href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; jboss-as7-dev mailing list<br>
&gt; <a href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a><br>
<br>
<br>
</div><span class="HOEnZb"><font color="#888888">--<br>
Brian Stansberry<br>
Principal Software Engineer<br>
JBoss by Red Hat<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
jboss-as7-dev mailing list<br>
<a href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a><br>
</div></div></blockquote></div><br>