3

I am looking into an open source Android project.

AntennaPod

It has a file named ".project" and content of the file is,

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>AntennaPod</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
        <buildCommand>
            <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.jdt.core.javabuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>com.android.ide.eclipse.adt.ApkBuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
    </buildSpec>
    <natures>
        <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
        <nature>org.eclipse.jdt.core.javanature</nature>
    </natures>
</projectDescription>

I would like to know what does this file do? When do we need this file?

also if there is any reference of the used tag in this file.

Any help is appreciated. Thanks in advance.

tausiq
  • 937
  • 1
  • 13
  • 23

2 Answers2

2

The .project file is an Eclipse file that describes the project. It is needed if you are loading the project in the Eclipse IDE.

See here for more info: What's in an Eclipse .classpath/.project file?

Community
  • 1
  • 1
BrentM
  • 5,671
  • 3
  • 31
  • 38
1

When a project is created in the workspace, a project description file is automatically generated that describes the project. The purpose of this file is to make the project self-describing, so that a project that is zipped up or released to a server can be correctly recreated in another workspace. This file is always called ".project", and is located as a direct member of the project's content area.

You can get all the details here

RajSharma
  • 1,941
  • 3
  • 21
  • 34