You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by EJ Ciramella <ej...@upromise.com> on 2008/02/28 19:26:46 UTC

listing all the properties set via profiles

Is there a plugin or configuration (or something) that echoes out a list
of all the properties available when given a list of profiles?
 
I wrote something long ago to do this, but I'm wondering if something
more off-the-shelf may exist now.

RE: listing all the properties set via profiles

Posted by EJ Ciramella <ej...@upromise.com>.
Yeah, sorry - I finally figured it out and apparently <echoproperties/>
will (duh) just echo out the ant properties (and none of the maven
ones).

I'll get around to writing a plugin that will generate a property file
sometime in the future... 

-----Original Message-----
From: Sean Hennessy [mailto:shennessy@astutenetworks.com] 
Sent: Thursday, February 28, 2008 4:18 PM
To: 'Maven Users List'
Subject: RE: listing all the properties set via profiles

believe you may need to add the optional dependency for echoproperties.
been using this version with success.

            <dependency>
            <groupId>ant</groupId>
            <artifactId>optional</artifactId>
            <version>1.5.4</version>
            </dependency>


-----Original Message-----
From: EJ Ciramella [mailto:ejciramella@upromise.com]
Sent: Thursday, February 28, 2008 11:26 AM
To: Maven Users List
Subject: RE: listing all the properties set via profiles


Here's a snippet from the pom:


<profiles>
      <profile>
      <id>propgen</id>
      <activation>
        <property>
          <name>propgen</name>
        </property>
      </activation>
         <build>
          <plugins>
                        <plugin>

<artifactId>maven-antrun-plugin</artifactId>
                                <dependencies>
                    <dependency>
                      <groupId>org.apache.ant</groupId>
                      <artifactId>ant-nodeps</artifactId>
                      <version>1.7.0</version>
                    </dependency>
                                </dependencies>
                                  <executions>
                    <execution>
                                <id>props</id>
                                <phase>process-resources</phase>
                                <configuration>
                                <tasks>
                                  <ant antfile="props.xml"/>
                        </tasks>
                        </configuration>
                        <goals>
                                <goal>run</goal>
                        </goals>

                         </execution>
                         </executions>
                </plugin>
                </plugins>
        </build>
   </profile>

-----Original Message-----
From: EJ Ciramella [mailto:ejciramella@upromise.com]
Sent: Thursday, February 28, 2008 2:05 PM
To: Maven Users List
Subject: RE: listing all the properties set via profiles

It dawned on me that ant has an <echoproperties/> task, but with ant and
ant-nodeps added as dependencies, it still gives the error:


Could not create task or type of type: echoproperties.

Ant could not find the task or a class this task relies upon.


Is there something else that's necessary?


-----Original Message-----
From: EJ Ciramella [mailto:ejciramella@upromise.com]
Sent: Thursday, February 28, 2008 1:27 PM
To: users@maven.apache.org
Subject: listing all the properties set via profiles

Is there a plugin or configuration (or something) that echoes out a list
of all the properties available when given a list of profiles?

I wrote something long ago to do this, but I'm wondering if something
more off-the-shelf may exist now.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: listing all the properties set via profiles

Posted by Sean Hennessy <sh...@astutenetworks.com>.
believe you may need to add the optional dependency for echoproperties.
been using this version with success.

            <dependency>
            <groupId>ant</groupId>
            <artifactId>optional</artifactId>
            <version>1.5.4</version>
            </dependency>


-----Original Message-----
From: EJ Ciramella [mailto:ejciramella@upromise.com]
Sent: Thursday, February 28, 2008 11:26 AM
To: Maven Users List
Subject: RE: listing all the properties set via profiles


Here's a snippet from the pom:


<profiles>
      <profile>
      <id>propgen</id>
      <activation>
        <property>
          <name>propgen</name>
        </property>
      </activation>
         <build>
          <plugins>
                        <plugin>

<artifactId>maven-antrun-plugin</artifactId>
                                <dependencies>
                    <dependency>
                      <groupId>org.apache.ant</groupId>
                      <artifactId>ant-nodeps</artifactId>
                      <version>1.7.0</version>
                    </dependency>
                                </dependencies>
                                  <executions>
                    <execution>
                                <id>props</id>
                                <phase>process-resources</phase>
                                <configuration>
                                <tasks>
                                  <ant antfile="props.xml"/>
                        </tasks>
                        </configuration>
                        <goals>
                                <goal>run</goal>
                        </goals>

                         </execution>
                         </executions>
                </plugin>
                </plugins>
        </build>
   </profile>

-----Original Message-----
From: EJ Ciramella [mailto:ejciramella@upromise.com]
Sent: Thursday, February 28, 2008 2:05 PM
To: Maven Users List
Subject: RE: listing all the properties set via profiles

It dawned on me that ant has an <echoproperties/> task, but with ant and ant-nodeps added as dependencies, it still gives the error:


Could not create task or type of type: echoproperties.

Ant could not find the task or a class this task relies upon.


Is there something else that's necessary?


-----Original Message-----
From: EJ Ciramella [mailto:ejciramella@upromise.com]
Sent: Thursday, February 28, 2008 1:27 PM
To: users@maven.apache.org
Subject: listing all the properties set via profiles

Is there a plugin or configuration (or something) that echoes out a list of all the properties available when given a list of profiles?

I wrote something long ago to do this, but I'm wondering if something more off-the-shelf may exist now.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: listing all the properties set via profiles

Posted by EJ Ciramella <ej...@upromise.com>.
Here's a snippet from the pom:


<profiles>
      <profile>
      <id>propgen</id>
      <activation>
        <property>
          <name>propgen</name>
        </property>
      </activation>
         <build>
          <plugins>
			<plugin>
	
<artifactId>maven-antrun-plugin</artifactId>
				<dependencies>
                    <dependency>
                      <groupId>org.apache.ant</groupId>
                      <artifactId>ant-nodeps</artifactId>
                      <version>1.7.0</version>
                    </dependency>	
				</dependencies>
				  <executions>
                    <execution>
				<id>props</id>
				<phase>process-resources</phase>
				<configuration>
				<tasks>
				  <ant antfile="props.xml"/>
                    	</tasks>
			</configuration>
			<goals>
				<goal>run</goal>
			</goals>

			 </execution>
			 </executions>
		</plugin>
		</plugins>
	</build>
   </profile> 

-----Original Message-----
From: EJ Ciramella [mailto:ejciramella@upromise.com] 
Sent: Thursday, February 28, 2008 2:05 PM
To: Maven Users List
Subject: RE: listing all the properties set via profiles

It dawned on me that ant has an <echoproperties/> task, but with ant and
ant-nodeps added as dependencies, it still gives the error:


Could not create task or type of type: echoproperties.

Ant could not find the task or a class this task relies upon.


Is there something else that's necessary?
 

-----Original Message-----
From: EJ Ciramella [mailto:ejciramella@upromise.com] 
Sent: Thursday, February 28, 2008 1:27 PM
To: users@maven.apache.org
Subject: listing all the properties set via profiles

Is there a plugin or configuration (or something) that echoes out a list
of all the properties available when given a list of profiles?
 
I wrote something long ago to do this, but I'm wondering if something
more off-the-shelf may exist now.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: listing all the properties set via profiles

Posted by EJ Ciramella <ej...@upromise.com>.
It dawned on me that ant has an <echoproperties/> task, but with ant and
ant-nodeps added as dependencies, it still gives the error:


Could not create task or type of type: echoproperties.

Ant could not find the task or a class this task relies upon.


Is there something else that's necessary?
 

-----Original Message-----
From: EJ Ciramella [mailto:ejciramella@upromise.com] 
Sent: Thursday, February 28, 2008 1:27 PM
To: users@maven.apache.org
Subject: listing all the properties set via profiles

Is there a plugin or configuration (or something) that echoes out a list
of all the properties available when given a list of profiles?
 
I wrote something long ago to do this, but I'm wondering if something
more off-the-shelf may exist now.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org