<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Alexander Zerr &#187; SVN</title>
	<atom:link href="http://www.xelaz.de/tag/svn/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xelaz.de</link>
	<description>Meine Erfahrungen in der Web Entwicklung</description>
	<lastBuildDate>Mon, 19 Jul 2010 15:05:31 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Eclipse .project und SVN</title>
		<link>http://www.xelaz.de/eclipse-project-und-svn/</link>
		<comments>http://www.xelaz.de/eclipse-project-und-svn/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 21:56:32 +0000</pubDate>
		<dc:creator>Alexander Zerr</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[PDT]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[ZF]]></category>

		<guid isPermaLink="false">http://www.xelaz.de/archives/5</guid>
		<description><![CDATA[
Ich bin letztens an ein Problem gekommen, welches mir ein Tag gekostet hat es zu lösen, weil ich einfach nicht logisch nachgedacht hatte.
Folgendes, ich check ein Projekt aus SVN aus und mir fehlt eine Datei &#8220;.project&#8221; die von Eclipse automatisch eingefügt wird. Das Problem ist jetzt: Wenn es ein PHP Projekt ist und man viele [...]]]></description>
			<content:encoded><![CDATA[<p><div style="float:left; margin:10px;width:240px;"><iframe src="http://rcm-de.amazon.de/e/cm?t=vfgibo-21&amp;asins=3898427927&amp;fc1=ff0000&amp;lc1=00749E&amp;bc1=ffffff&amp;bg1=ffffff&amp;lt1=_blank&amp;is2=1&amp;o=3&amp;p=8&amp;l=as1&amp;f=ifr&amp;" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe><iframe src="http://rcm-de.amazon.de/e/cm?t=vfgibo-21&amp;asins=0672329409&amp;fc1=ff0000&amp;lc1=00749E&amp;bc1=ffffff&amp;bg1=ffffff&amp;lt1=_blank&amp;is2=1&amp;o=3&amp;p=8&amp;l=as1&amp;f=ifr&amp;" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></div><br />
Ich bin letztens an ein Problem gekommen, welches mir ein Tag gekostet hat es zu lösen, weil ich einfach nicht logisch nachgedacht hatte.</p>
<p>Folgendes, ich <em>check</em> ein Projekt aus SVN aus und mir fehlt eine Datei &#8220;<strong>.project</strong>&#8221; die von Eclipse automatisch eingefügt wird. Das Problem ist jetzt: Wenn es ein PHP Projekt ist und man viele Klassen hat oder ein Framwork (ZF), die man per Kontextmenue anzeigen will (Strg+LeehrT), weiss Eclipse nicht wo man nach den Namen suchen soll. Es wird auch von Eclipse kein <em>Build</em> ausgeführt und man kann kein <em>Clean&#8230;</em> auf das Projekt ausführen. Warum?</p>
<p><strong>Lösung:</strong> Man öffnet die .project (falls man sie nicht sehen kann, dann wird sie von Ecplipse versteckt, Lösung &#8220;Filter ausschalten&#8221;) Datei:</p>

<div class="wp_syntax"><div class="code"><pre class="xml"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;?xml</span> <span style="color: #000066;">version</span>=”<span style="color: #cc66cc;">1.0</span>″ <span style="color: #000066;">encoding</span>=”UTF<span style="color: #cc66cc;">-8</span>″<span style="font-weight: bold; color: black;">?&gt;</span></span>
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;projectDescription<span style="font-weight: bold; color: black;">&gt;</span></span></span>
&nbsp;
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;name<span style="font-weight: bold; color: black;">&gt;</span></span></span>projektXXX<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/name<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;comment<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/comment<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;projects<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/projects<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;buildSpec<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;buildCommand<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/buildCommand<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/buildSpec<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;natures<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/natures<span style="font-weight: bold; color: black;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/projectDescription<span style="font-weight: bold; color: black;">&gt;</span></span></span></pre></div></div>

<p>Die beiden Knoten <strong>&lt;buildSpec&gt;</strong> und <strong>&lt;natures&gt;</strong> müßen mit diesem Teil ersetzt werden:</p>

<div class="wp_syntax"><div class="code"><pre class="xml"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;buildSpec<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;buildCommand<span style="font-weight: bold; color: black;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;name<span style="font-weight: bold; color: black;">&gt;</span></span></span>org.eclipse.php.core.PhpIncrementalProjectBuilder<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/name<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/buildCommand<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;buildCommand<span style="font-weight: bold; color: black;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;name<span style="font-weight: bold; color: black;">&gt;</span></span></span>org.eclipse.wst.validation.validationbuilder<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/name<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/buildCommand<span style="font-weight: bold; color: black;">&gt;</span></span></span>
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/buildSpec<span style="font-weight: bold; color: black;">&gt;</span></span></span>
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;natures<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;nature<span style="font-weight: bold; color: black;">&gt;</span></span></span>org.eclipse.php.core.PHPNature<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/nature<span style="font-weight: bold; color: black;">&gt;</span></span></span>
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/natures<span style="font-weight: bold; color: black;">&gt;</span></span></span></pre></div></div>

<p><div style="float:right; margin:10px;width:240px;"><iframe src="http://rcm-de.amazon.de/e/cm?t=vfgibo-21&amp;asins=3897214601&amp;fc1=ff0000&amp;lc1=00749E&amp;bc1=ffffff&amp;bg1=ffffff&amp;lt1=_blank&amp;is2=1&amp;o=3&amp;p=8&amp;l=as1&amp;f=ifr&amp;" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe><iframe src="http://rcm-de.amazon.de/e/cm?t=vfgibo-21&amp;asins=3898644871&amp;fc1=ff0000&amp;lc1=00749E&amp;bc1=ffffff&amp;bg1=ffffff&amp;lt1=_blank&amp;is2=1&amp;o=3&amp;p=8&amp;l=as1&amp;f=ifr&amp;" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></div>Dann ruft man in Eclipse Menü<br />
<em>Project -&gt; Clean&#8230; </em>auf. Jetzt das Häkchen auf das gewünschte Projekt setzen und OK drücken.</p>
<p>Ecplipse führt danach &#8220;Building workspace&#8221; aus und jetzt hat man ein sauberes PHP Projekt mit eigenen Namespaces.</p>
<p><strong>Dabei müsst ihr beachten</strong>, mit welchem Plugin eure Eclipse PHP anzeigt. Ich benutze das <a href="http://www.zend.com/en/community/pdt" title="PDT">PDT </a>mit <a href="www.eclipse.org/webtools/wst/main.php">WST</a>. Wenn ihr andere habt wie PHPEclipse. Dann legt einfach ein Dummy Projekt an und schaut euch dort diese Zeilen aus .project an.</p>
<p>Also ich denke mal, dass das reicht um auch selber das Problem zu lösen.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xelaz.de/eclipse-project-und-svn/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
