I see so we are thinking that the deltas may come different projects.  That
is unlikely, since our code is only supporting the publishing of one
project. Which brings up the question of upstream project changes, I'm not
sure how those are redeployed in the maven scenario, we would need to test
that.  So we can leave this code for now, but I doubt it is working like we
would expect.


On Tue, Apr 15, 2014 at 4:32 PM, simon.jiang <notifications@github.com>wrote:

> In
> maven/plugins/com.liferay.ide.maven.core/src/com/liferay/ide/maven/core/MavenProjectRemoteServerPublisher.java:
>
> > +    @Override
> > +    public void processResourceDeltasZip(
> > +        IModuleResourceDelta[] deltas, ZipOutputStream zip, Map<ZipEntry, String> deleteEntries, String deletePrefix,
> > +        String deltaPrefix, boolean adjustGMTOffset ) throws IOException, CoreException
> > +    {
> > +
> > +        for( IModuleResourceDelta delta : deltas )
> > +        {
> > +            int deltaKind = delta.getKind();
> > +            IResource deltaResource = (IResource) delta.getModuleResource().getAdapter( IResource.class );
> > +
> > +            IProject deltaProject = deltaResource.getProject();
> > +
> > +            //factedProject.g
> > +            // IDE-110 IDE-648
> > +            IVirtualFolder webappRoot = CoreUtil.getDocroot( deltaProject );
>
> the deltaProject come from delta, I have to put it inside of for(deltas)
> loop. you mean I can use the first element of deltas to get webappRoot?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/gamerson/liferay-ide/pull/524/files#r11624401>
> .
>



-- 
Greg Amerson
Liferay Developer Tools
Liferay, Inc. www.liferay.com