2009-06-25 4 views
1

foo라는 플러그인과 foo라는 플러그인이 있고 하나의 조각 foo.win32.x86이 있습니다.기능에서 eclipse.buildscript 태스크를 실행하면 조각이 손실됩니다.

기능의 ant 파일 내에서 eclipse.buildscript를 호출하고 기능, 플러그인 및 단편에 대한 build.xml을 작성할 수 있어야합니다. 그러나, 내가 얻는 것은 피쳐와 플러그인을위한 build.xml이다.

푸 feature.xml을 :

<?xml version="1.0" encoding="UTF-8"?> 
<feature 
    id="foo" 
    label="%featureName" 
    version="0.0.0.200906251500" 
    provider-name="%providerName" 
    plugin="foo"> 
<install-handler/> 

<description> 
    %description 
</description> 

<copyright> 
    %copyRight 
</copyright> 

<license url="license.html"> 
    %license 
</license> 

<plugin 
    id="foo" 
    download-size="0" 
    install-size="0" 
    version="0.0.0"/> 

<plugin 
    id="foo.win32.x86" 
    os="win32" 
    arch="x86" 
    download-size="0" 
    install-size="0" 
    version="0.0.0" 
    fragment="true"/> 

</feature> 

푸 플러그인 MANIFEST.MF 파일 :

Manifest-Version: 1.0 
Bundle-ManifestVersion: 2 
Bundle-Name: %Plugin.name 
Bundle-SymbolicName: foo; singleton:=true 
Bundle-Version: 0.0.0.200906251500 
Bundle-Vendor: %Plugin.providername 
Bundle-Localization: plugin 
Eclipse-LazyStart: true 

푸 plugin.xml 파일 :

<?xml version="1.0"?> 
<?eclipse version="3.0"?> 
<plugin> 
    <!-- extension point stuff, blah --> 
</plugin> 

foo.win32 .x86 MANIFEST.MF 파일 :

Manifest-Version: 1.0 
Bundle-ManifestVersion: 2 
Bundle-Name: %Plugin.name 
Bundle-SymbolicName: foo.win32.x86 
Bundle-Version: 0.0.0.200906251500 
Bundle-Vendor: %Plugin.providername 
Fragment-Host: foo;bundle-version="0.0.0.200906251500" 
Bundle-Localization: plugin 

누군가 내가 왜 조각에 대한 build.xml을 얻지 못하고 있는지 설명 할 수 있습니까?

조각에 대해 eclipse.buildscript를 강제 호출하면 제대로 작동하지만 목적을 달성하지 못합니까?

감사

답변

2

당신은 configInfo 속성을 지정해야합니다. 값은 '&'으로 구분 된 목록 인 "os,ws,arch"입니다. 빌드되는 구성 중 하나에 대해 해결되는 경우 플랫폼 특정 단편에 대해서만 스크립트가 생성됩니다. configInfo가 지정되지 않은 경우 기본값은 "*,*,*"이며 "플랫폼 독립적"(foo.win32.x86이 일치하지 않음)을 의미합니다.

예 :

<eclipse.buildscript 
     elements="[email protected]" 
     buildDirectory="${buildDirectory}" 
     baseLocation="${baseLocation}" 
     configInfo="win32,win32,x86" /> 

도움말 페이지가 도움이 될 수 here이다.

+0

감사합니다. 무리가 ... 작동합니다! – Michael

관련 문제