This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Usage Information for Command Line Option '-i' when building.

The manual states:
-i import_file.xml Creates a new project or updates an existing project using the data provided by an XML file, which has to be compliant to the schema project_import.xsd available in the directory ..\UV4. The target name can be specified with the option -t. By default, the target name is set to the device name. The GUI is suppressed automatically when using this option.

Examples:
UV4 MyProject.uvprojx –i MyImport.xml

But it doesn't provide any example of what might be in the MyImport.xml. Can anyone elaborate? I'm most interested in the "updates an existing project" aspect of it, as I'd like to enable and disable a pre-build step based on command line input instead of having a separate target to maintain.

Thanks, -J

Parents
  • Hello Jeff,
    as the manual tells, "the schema project_import.xsd available in the directory ..\UV4" should telly you, how MyImport.xml shall look like. But here also an example, that I used for testing:

    <?xml version="1.0" encoding="utf-8"?>
    <Project>
      <Groups>
        <Group>
          <GroupName>GroupName1</GroupName>
          <Files>
            <File>
              <FileName>FileName1</FileName>
              <FileType>1</FileType>
              <FilePath>FilePath1</FilePath>
            </File>
            <File>
              <FileName>FileName2</FileName>
              <FileType>1</FileType>
              <FilePath>FilePath2</FilePath>
            </File>
            <File>
              <FileName>FileName3</FileName>
              <FileType>1</FileType>
              <FilePath>FilePath3</FilePath>
            </File>
          </Files>
        </Group>
        <Group>
          <GroupName>GroupName2</GroupName>
          <Files>
            <File>
              <FileName>FileName4</FileName>
              <FileType>1</FileType>
              <FilePath>FilePath4</FilePath>
            </File>
            <File>
              <FileName>FileName5</FileName>
              <FileType>1</FileType>
              <FilePath>FilePath5</FilePath>
            </File>
            <File>
              <FileName>FileName6</FileName>
              <FileType>1</FileType>
              <FilePath>FilePath6</FilePath>
            </File>
          </Files>
        </Group>
        <Group>
          <GroupName>GroupName3</GroupName>
          <Files>
            <File>
              <FileName>FileName7</FileName>
              <FileType>1</FileType>
              <FilePath>FilePath7</FilePath>
            </File>
            <File>
              <FileName>FileName8</FileName>
              <FileType>1</FileType>
              <FilePath>FilePath8</FilePath>
            </File>
            <File>
              <FileName>FileName9</FileName>
              <FileType>1</FileType>
              <FilePath>FilePath9</FilePath>
            </File>
          </Files>
        </Group>
      </Groups>
      <useUlib>1</useUlib>
      <LinkOptions>LinkOptions1</LinkOptions>
      <AsmOptions>AsmOptions1</AsmOptions>
      <COptions>COptions1</COptions>
      <AsmDefines>AsmDefines1</AsmDefines>
      <CDefines>CDefines1</CDefines>
      <MiscControls>MiscControls1</MiscControls>
    
      <ScatterFile>ScatterFile1</ScatterFile>
      <!---->
      <IncludePath>IncludePath1</IncludePath>
      <Device>ARMCM3</Device>
      <ToolsetName>ARM</ToolsetName>
    </Project>
    

Reply
  • Hello Jeff,
    as the manual tells, "the schema project_import.xsd available in the directory ..\UV4" should telly you, how MyImport.xml shall look like. But here also an example, that I used for testing:

    <?xml version="1.0" encoding="utf-8"?>
    <Project>
      <Groups>
        <Group>
          <GroupName>GroupName1</GroupName>
          <Files>
            <File>
              <FileName>FileName1</FileName>
              <FileType>1</FileType>
              <FilePath>FilePath1</FilePath>
            </File>
            <File>
              <FileName>FileName2</FileName>
              <FileType>1</FileType>
              <FilePath>FilePath2</FilePath>
            </File>
            <File>
              <FileName>FileName3</FileName>
              <FileType>1</FileType>
              <FilePath>FilePath3</FilePath>
            </File>
          </Files>
        </Group>
        <Group>
          <GroupName>GroupName2</GroupName>
          <Files>
            <File>
              <FileName>FileName4</FileName>
              <FileType>1</FileType>
              <FilePath>FilePath4</FilePath>
            </File>
            <File>
              <FileName>FileName5</FileName>
              <FileType>1</FileType>
              <FilePath>FilePath5</FilePath>
            </File>
            <File>
              <FileName>FileName6</FileName>
              <FileType>1</FileType>
              <FilePath>FilePath6</FilePath>
            </File>
          </Files>
        </Group>
        <Group>
          <GroupName>GroupName3</GroupName>
          <Files>
            <File>
              <FileName>FileName7</FileName>
              <FileType>1</FileType>
              <FilePath>FilePath7</FilePath>
            </File>
            <File>
              <FileName>FileName8</FileName>
              <FileType>1</FileType>
              <FilePath>FilePath8</FilePath>
            </File>
            <File>
              <FileName>FileName9</FileName>
              <FileType>1</FileType>
              <FilePath>FilePath9</FilePath>
            </File>
          </Files>
        </Group>
      </Groups>
      <useUlib>1</useUlib>
      <LinkOptions>LinkOptions1</LinkOptions>
      <AsmOptions>AsmOptions1</AsmOptions>
      <COptions>COptions1</COptions>
      <AsmDefines>AsmDefines1</AsmDefines>
      <CDefines>CDefines1</CDefines>
      <MiscControls>MiscControls1</MiscControls>
    
      <ScatterFile>ScatterFile1</ScatterFile>
      <!---->
      <IncludePath>IncludePath1</IncludePath>
      <Device>ARMCM3</Device>
      <ToolsetName>ARM</ToolsetName>
    </Project>
    

Children