<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Sample5</title><link>https://sourceforge.net/p/scfjava/wiki/Sample5/</link><description>Recent changes to Sample5</description><atom:link href="https://sourceforge.net/p/scfjava/wiki/Sample5/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 22 Oct 2012 22:59:08 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/scfjava/wiki/Sample5/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Sample5 modified by scf</title><link>https://sourceforge.net/p/scfjava/wiki/Sample5/</link><description>&lt;pre&gt;--- v1
+++ v2
@@ -1,6 +1,10 @@
 ### Abstract ###
 
 This sample show us how to read properties from a MANIFEST.MF file using the **ManifestPropertyFinder**.
+
+---
+
+Este ejemplo nos muestra cómo leer propiedades desde un archivo MANIFEST.MF utilizando el **ManifestPropertyFinder**.
 
 ### MANIFEST.MF ###
 ~~~~~~
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">scf</dc:creator><pubDate>Mon, 22 Oct 2012 22:59:08 -0000</pubDate><guid>https://sourceforge.net9679532d2603cf5592feb34e563499c5491811b5</guid></item><item><title>WikiPage Sample5 modified by scf</title><link>https://sourceforge.net/p/scfjava/wiki/Sample5/</link><description>### Abstract ###

This sample show us how to read properties from a MANIFEST.MF file using the **ManifestPropertyFinder**.

### MANIFEST.MF ###
~~~~~~
:::manifest

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.2
Created-By: SCF Builder
Created-On: 2012-08-13 [19:47:27]
Commons-Version: 1.0

~~~~~~
---
### Sample.java ###
~~~~~~
:::java

package ar.com.scf.sample05;

import java.io.File;

import ar.com.scf.IPropertyFinder;
import ar.com.scf.impl.ManifestPropertyFinder;
import ar.com.scf.impl.PropertyReplacer;

public class Sample {

  public static void main(String[] args) {
    IPropertyFinder finder = new ManifestPropertyFinder(new File("MANIFEST.MF"));
    PropertyReplacer replacer = new PropertyReplacer(finder);

    System.out.println(replacer.expand("Builder: ${Ant-Version}"));

  }

}

~~~~~~

---
### output ###
~~~~~~
:::console
Builder: Apache Ant 1.8.2

~~~~~~</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">scf</dc:creator><pubDate>Thu, 18 Oct 2012 21:35:31 -0000</pubDate><guid>https://sourceforge.net533cbc5609b0796ce4a9d2d22ce951449ec0f06c</guid></item></channel></rss>